In the code below, I want to edit it so that it strips out the first line.
function update(url,cln){
$.ajax({
url: url,
dataType: "HTML",
error: function(msg){
alert(msg.statusText);
return msg;
},
success: function(html){
$("#main").html(html + '<a id="MAX"></a>');
}
});
}
For example if the code contacts the url: http://stackoverflow.com/
The url returns:
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<div id="data">
<div id="test">
</div>
</div>
It would strip out the first line so that when it writes the html to the #main
it would only write:
<div id="data">
<div id="test">
</div>
</div>