Possible Duplicate:
jQuery ajax() vs get()/post()
what is the difference between jQuery ajax() and jQuery get() ?
which one is better to load some data from a url in a div when user clicks on a link?
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.
The answer is neither. If you want to load HTML directly into a div, the simplest way is to use .load:
It doesn’t get any easier than that.