jQuery getting just added by ajax element
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:45 UTC
Read the original article
Hit count: 272
jQuery
$.post('includes/script.php', $(this).serialize(), function(data) {
$('body').append(data);
});
alert ($('#new').length)
php script is <php echo "<div id="new">text</div>" ?>
it alerts 0, so it can't see new div.
How can you make it see new div?
© Stack Overflow or respective owner