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
Post a Comment