Modify ↓
Ticket #990 (closed bug: invalid)
Chaining doesn't always work as expected.
| Reported by: | dialtone | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.2 |
| Component: | core | Version: | 1.1.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$("<div>ciao</div>").after($("<span>bello</span>")).appendTo("body");
Only appends the div without any trace of span.
$("<div>div</div>").attr("id","test").appendTo("body"); $("#test").after($("<span>span</span>"));
This works but it's not really a good solution because it requires me to add a new id 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.

This works as expected: