How to execute javascript inside a script tag returned by an ajax response

You should be able to do the following:

$.get($(this).attr("href"), $(this).serialize(), function(data){
   var script = $(data).text();
   eval(script);
});

Leave a Comment