我有一个jQuery ajax get会返回一个html文本.从这一个我需要提取h3元素(id =’title’)值:这是标题.
我可以用jQuery实现这个目标吗?
这是电话:
$.ajax({
url: url,type: 'GET',cache:false,success: function (data) { // data is the html text returned
alert('The title is: ' + TITLE HERE);
}
});
最佳答案