Modify ↓
Ticket #11512 (closed bug: duplicate)
$(this).attr('id')
| Reported by: | vladimir@… | Owned by: | vladimir@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In 1.7.2, alert($(this).attr('id')); will output [Object], but same code works fine in 1.7.1 (output the string ID)
Change History
comment:1 Changed 15 months ago by sindresorhus
- Owner set to vladimir@…
- Status changed from new to pending
comment:2 Changed 15 months ago by anonymous
I can not reproduce this bug with jsfiddle. Bug alert($('#'+areaId).attr('editor')); print [object Object] too.
comment:3 Changed 15 months ago by rwaldron
Can you list here all the other scripts or jQuery Plugins you're using in your code? Thanks!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.