Modify ↓
Ticket #6555 (closed bug: worksforme)
.add(selector) does not add any matched elements
| Reported by: | lshearer88 | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | traversing | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Adding elements to a jQuery object using the .add(selector) method does not work. Alternative methods of either using .add($(selector)) or .add(selector, document.body) work, but using a selector string as the only parameter does not.
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.

See http://jsbin.com/osiye3 .