Don't those div blocks need quotes?

On 10/18/06, Will Jessup <[EMAIL PROTECTED]> wrote:
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 = "" >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/

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

Reply via email to