javascript - Modalbox - .click event not working after ajax call -
i have integrated modal box page: http://leanmodal.finelysliced.com.au. when working elements on page, modal box works fine. however, when receive data ajax call, click event doesn't work.
the problem seems .click works elements on page. problem .click works elements on page - , using "on", should work. have tried editing js-file without succes.
link js: http://leanmodal.finelysliced.com.au/js/jquery.leanmodal.min.js
how should edit js-file? in advance.
ensure inserted elements ajax call have correct attributes (rel="leanmodal") modal script for.
after inserting ajax data page, should assign modal code new elements by;
$('a[rel*=leanmodal]').leanmodal({ top : 200, closebutton: ".modal_close" });
Comments
Post a Comment