if I do this:
$('#myDiv').load('/somepage.aspx #someDiv #someOtherDiv', function(data){
console.log(data);
});
In the console I see the whole page code, instead of the contents of #someDiv #someOtherDiv.
Is that right?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, thats right. jQuery loads the whole page, but gets only the requested elements (#someDiv #someOtherDiv in your case) from it.