I\'m getting an ajax output success data.
Where the data contains some html text and a script.
But the script is not executing, how can I execute the script.
If you are retrieving the JSON formatted result from AJAX call, you can just use eval to execute the javascript.
Assume, if the result json is formed like this
var res = '{"Data": "", "script": "alert(something)"}'; var out = eval("(" + res + ")"); var data = out.data; eval(out.script);