jQuery getting just added by ajax element
- by Qiao
$.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?