Say I have this script
$.get('test.html', function(data){ //data }); How can I find a div with a specific class inside data??
Use data as the context argument to $(selector, context), like this:
$.get('test.html', function(data){ $("div.someClass", data) }); documentFragment which can vary between browsers if the content isn't valid for a .innerHTML call. What does $(data).html() give you in IE?