You can use jqModal's onLoad event. $('#modal').jqm({ajax: url,target: 'div.jq_content', trigger: false, modal:true, onLoad: modalLoaded }).jqmShow();
function modalLoaded(hash) { // call function or bind event to elements } On Feb 24, 2:07 am, "J. Childers" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using jqModal:ajax to load a remote php into a div "modal" form. So far > so good. But the returned HTML also has some jquery elements. I can't figure > out how to get them to initialize (i.e. the function call that would > otherwise be in the $(document).ready function). > > I tried doing something with onload like so: > > > > > > > <script> > > $().ready(function() { > > $('#ex2').jqm({ > > ajax: 'prodtabs2.php', > > trigger:'a.ex2trigger', > > onLoad: loadAjax }); > > }); > > > var loadAjax = function(jqmHash) { > > > $("#productinfo > ul").tabs(); // trying to init jquery.ui.tabs > > > }; > > </script> > > I also tried using jqmHash.w as a second parameter, but also to no avail. > Can anyone point me in the right direction? > > Thanks. > -- > View this message in > context:http://www.nabble.com/jqModal---how-to-call-jquery-functions-on-retur... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.