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\
The only way i found with live and callback,
$('p').live('click', function() { // delay dont work with html() // fcallback function $(this).parent('div').slideUp('slow', function() { // empty block $(this).html(''); if($(this).html()==''){ // function myFunction(); } }); });