Modify ↓
Ticket #5546 (closed bug: worksforme)
find does not work with two sets of brackets in attribute selector
| Reported by: | bradcupit | Owned by: | john |
|---|---|---|---|
| Priority: | low | Milestone: | 1.4.4 |
| Component: | selector | Version: | 1.3.2 |
| Keywords: | find bracket brackets attribute selector | Cc: | |
| Blocking: | Blocked by: |
Description
the find() method does not work when using an attribute selector to find a value with two sets of brackets:
obj.find("input[name='parent[0].child[0]']")
strangely enough, one set of brackets works:
obj.find("input[name='parent[0].something']")
escaping does not solve the problem. The workaround it to use the jQuery method rather than the find method.
See attached test case.
Attachments
Change History
Changed 3 years ago by bradcupit
-
attachment
find_test.html
added
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.

test case