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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -