I am trying to show a bootstrap modal with dynamic content so one of the values being passed to the modal is the HTML to be shown in it.
My problem is that in the HTML content being passed, I have a script tag that returns an object on execution, so when the modal is shown the script tag is not being executed. Is there any way I can execute the script tag before the modal is shown so that I get the object in he HTML before I pass it to the modal?
show.bs.modalorshown.bs.modalevent and get the HTML. See getbootstrap.com/javascript/#modals-events for more details