Does anyone know of a work around for jquery .load() stripping out the script tags loaded from external content?
There\'s a lot of documentation of the fact that thi
This thread is a bit older now, but I found a workaround for the $.load + selector + issue/feature which I would like to share. Maybe it will be helpful to someone. Instead of $.load, I use this:
$.ajax({
url: '/some/url',
success: function(html) {
var content = $('').html(html).find('#my-custom-selector');
$('#container-to-place-html-in').html(content);
}
});
Cheers, Alex