jQuery getting just added elements
Posted
by Qiao
on Stack Overflow
See other posts from Stack Overflow
or by Qiao
Published on 2010-03-14T01:25:29Z
Indexed on
2010/03/14
1:35 UTC
Read the original article
Hit count: 273
jQuery
funtion addnew (){
$('body').append('<div id="new">text</div>');
alert ($('#new').length)
}
it alerts 0, so it can't see new div.
How can you make it see new div?
© Stack Overflow or respective owner