jeudi 3 mai 2018

jquery document.ready function is not working in iframe

I have an iframe. The iframe's src calls a specific controller's method to load a view in it. In the main view there are three buttons; Register, Login and Contact.

When I click on any of above buttons, a bootstrap modal is opened and using AJAX I render a HTML view page in the modal body section.

My problem is that when I click any of the buttons for the first time, my document.ready function works successfully but after closing that modal if I again click on same button my jQuery does not work at all.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire