Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13896 closed bug (invalid)

clone bug

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:


The question is: when i clone some elements to append to a new node, i can not get the cloned elements through the selector; the code as: $("#b").append($("#a select").clone(true)); alert($(#b select).html());here, i can not get the new select.

jquery 1.6.1 and in ie9

Change History (3)

comment:1 Changed 10 years ago by trebor89

Can you post a simplified usecase on jsFiddle? It's possible that your selector $("#a select") is malformed (does select have an id of "a"? or the container div?), resulting in no result coming back. If that were the case, you would be appending an empty jQuery result, giving no select.

Here's an example jsFiddle, showing the case working: http://jsfiddle.net/Z29NZ/

comment:2 Changed 10 years ago by Timmy Willison

Owner: set to anonymous
Status: newpending

comment:3 Changed 10 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.