Bootstrap has a modal-method with a remote option. I want to perform some actions on the content that has been loaded by Jquery/Bootstrap. (e.g., scan for specific classes and replace content on the fly).
Is there an 'onloaded' option in the modal() method?
$('#someplaceholder'.modal({
remote: "data/whatever/123",
onloaded: function() {
// perform some substitution,...
},
});
I solve this now by using a setTimeout() function; but this is not an elegant way.