jQuery ready event not fired on partial page load

后端 未结 5 1372
春和景丽
春和景丽 2021-01-13 00:14

Here\'s the situ: A page which contains html and using the jQuery libray and tabs jQuery UI plugin loads another page when some tab is clicked. The problem is that when the

5条回答
  •  时光说笑
    2021-01-13 01:08

    The load method offers a callback which is executed after the content has been loaded.

    $("#myDiv").load(url, null, function() { 
       //do your stuff here 
    });
    

    Full documentation and examples at jQuery.com: http://docs.jquery.com/Ajax/load

提交回复
热议问题