Side navigation
#13896 closed bug (invalid)
Opened May 16, 2013 01:49AM UTC
Closed May 31, 2013 08:41AM UTC
clone bug
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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
Attachments (0)
Change History (3)
Changed May 16, 2013 02:30AM UTC by comment:1
Changed May 16, 2013 03:58PM UTC by comment:2
owner: | → anonymous |
---|---|
status: | new → pending |
Changed May 31, 2013 08:41AM UTC by comment:3
resolution: | → invalid |
---|---|
status: | pending → closed |
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!
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/