Modify ↓
Ticket #3140 (closed bug: invalid)
jQuery fails when element's id include character"[]"
| Reported by: | huangam | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | selector | Version: | 1.2.6 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Here is an element: <div id="test[test]"></div>, but $("#test[test]").length === 0
I think jQuery treat [test] as a attribute!
Change History
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.

Check out this link.