Why do you need a modal in a modal?
May 12, 2021
6
Level 6
jQuery not working within my modal
I need to use jQuery to call a function on show of my Bootstrap Modal.
$('#Modal').on('show.bs.modal', function (event) {...
This usually works. But I need to use it with a modal within a modal, which does not work. It can't detect the ID of the modal pop-up then. Maybe because of the DOM or maybe the page isn't ready...
I tested this with console.log and this is where it's breaking down.
How do I ensure that my jQuery works even if it is contained inside a modal?
Thanks
Please or to participate in this conversation.