$.ajax({
url: "sub_template5_js.php?content_id="+content_id,
dataType: 'html',
success: function(data){
alert(data);
}
});
In above code, when i give alert data i get html with js script, i need to separate the javascript and append to the external .js file
Pl. Help me
Thank you
using script as selector should work..
fiddle here
note: have to use loop , if incase you have more than one script tag.
this is just an example to get you started…
havn’t tested with youe data part but you can try..