suppose you have a simple web page that dynamically loads content that looks like this:
- main.html -
The jQuery code that adds HTML to the DOM always strips out tags. It runs them and then throws them away.
An exception to that behavior is when you use "$.load()" with the hack that allows you to load a fragment of a page:
$.load("http://something.com/whatever #stuff_I_want", function() { ... });
In that case, the scripts are stripped and not evaluated/run.