Hello list,

Have a question about how to grab elements that were put into the DOM w/ 
.append().

For example,

<div id="links">
  <div >one</div>
  <div> two </div>
</div>

Then i do this in javascript

    $("#links").children().remove(); //removes the divs with "one" and "two"
  var data = [<div >one</div>, <div >two </div>]
    for (var i=0; i < data.length; i++) {
               $("#links").append(data[i][0]);
     }

Then try to select them again,

$("#links").children();

Returns nothing
So how do i get it to return the appended items?





_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to