152
rated 0 times
[
154]
[
2]
/ answers: 1 / hits: 17890
/ 11 Years ago, thu, october 24, 2013, 12:00:00
Is there any way to get the text inside an element which is a response from an ajax jquery load. I need to get the text inside element which is present inside the response text from ajax page. Following is my ajax code:
var url = '...';
var saveData = $.ajax({
type: 'POST',
url: url,
data: {data : data},
dataType: text,
success: function (resultData) {
callback(resultData); // need to get the <h2> text here..
}
});
saveData.error(function () {
console.log(Request to API not send);
});
More From » jquery