I have a div which get's its content loaded through ajax .load("ajaxcontent.php").
Inside this div, we produce many other divs. I want to get the content of one of these divs.
I've tried var insidecontent=$('#topdiv').html(); but it returns null.
is there a trick to getting such values?
index.html
ajaxcontent.php
Hello World
This is the mid div
This is the bottom
javascript:
$("#news").load("ajaxcontent.php");
$(document).delegate("#total", "keyup", function (e) {
if(e.which!=13){
var insidecontent=$('#topdiv').html();
}
});