How to load script with jquery.load()?

When you say “the script doesn’t work” do you mean there’s javascript in the page you’re loading through ajax? It’s not going to work, ever, at least not directly. You have two choices. Parse out the script from the content you’ve loaded, and use eval to run it. A better way is to use $.getScript to load (and execute) … Read more