ajax请求a.html页面,返回指定的div中内容

接受请求的页面a.html结构:

<html>
<head>...</head>
<bosy>
<div id="test1">
<div class="copy">
内容1(还有其他div块)
</div>
</div>
<div id="test2">
<div class="copy">
内容2(还有其他div块)
</div>
</div>
</body>
</html>

现在不用Jquery返回结果responseText是整个html的内容,
我需要a.html中第一个class="copy"中的内容;
怎么处理responseText

ajax获取页面的返回值是可以当作独立的html文档操作的,支持jq的选择器操作,所以可以通过以下方式获取copy块中的源码:
success: function(responseText) {
var result=$(responseText).find(“copy”).first().html() ;
//result即为copy中的源码,当然也可以通过val(),text()获取相关值
温馨提示:答案为网友推荐,仅供参考