Say I have this script
$.get('test.html', function(data){
//data
});
How can I find a div with a specif开发者_开发技巧ic class inside data
??
Use data
as the context argument to $(selector, context)
, like this:
$.get('test.html', function(data){
$("div.someClass", data)
});
精彩评论