jquery .load with script in it
问题 I need load piece of content into my div, I need execute the script I have in remote div, for example I have <div id="thisIsRemoteContent"> <script src="blabla.js"></script> </div> in the remote-content.html Now I need load it with script to my page $('.mydiv').load("remote-content.html #thisIsRemoteContent"); In jquery API documentation was written that if I load piece of contet, then the script will not be executed. When calling .load() using a URL without a suffixed selector expression,