Is there a callback for the html() function or a way to check that it is finished. For example:
$("#some_div").html('something here');
if($("#some_div").html() == ''){
//do something here
}
I am setting the html of an element from a post. Sometimes it doesnt load so when it doesnt load I would like for it to do something, is this possible. The way I have it now it always does the other thing because it hasnt set the html by the time it checks that it has html.