javascript - jQuery after load complete event -


im using .load() , .show() dynamicly load html.

//load html $('#mydiv').load('some_url');    // display $('#mydiv').show(); 

but here need call javascript function exist in dynamic content, how can tell if .load() complete ?

use callback .load:

$('#mydiv').load('some_url', function() {     // gets executed when content loaded     $(this).show(); }); 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -