I have the following code in my index.html file:
<div id="page-insert"></div>
function openPage(pageid) {
$('#page-insert').load(pageid);
}
openPage('testpage.html');
There is also a few script files embedded on index.html such as jQuery, of course, and some plugins, such as Select2. None of my plugins work on the content after it is loaded into the div. It appears as if the embedded JS files don't apply to the content loaded through jQuery. How do I get the files to apply to this content?