I am using JQuery .get method to retrieve some content from a webpage (page 1) and show it in a div in the main page. The problem is the content retrieved contains some javascri
You can use .load() function instead of .get(). It automatically executes the scripts that are contained in the response.
.load()
.get()
Here is the documentation: .load()