javascript - Initialize the jQuery plugin after AJAX content loads -
i'm using popeasy jquery plugin pop modal forms. have working if trigger links , div containing modal form in main document uses
$(document).ready(function(){...
to initialize plugin.
but, need trigger modal content loaded via ajax, happens after main document "ready".
i've tried
$(document).ajaxcomplete(function(){...
but might using ajax in different way method expects?
how can initialize plugin after ajax content loads?
you can configure in success callback
once content retreived
$.ajax({ url:"server.aspx", type:"post", success:function(result){ //do here } });
Comments
Post a Comment