I want to download some html from an external source, and get only the contents within id #lay_body_get. This external source also contains a <script></script> tag but jQuery is taking out off from the response. Is there any way to get the html code including the javascript code inside the script tags ?
this is the function :
function ocmenu(url) {
$.ajax({
url: url,
dataType:"text"
}).done(function(resp) {
$('.new').html($('#lay_body_get',resp));
});
}