Possible Duplicate:
jQuery: text() vs html()?
What’s the difference between text and html() in jquery?
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.
Source: http://api.jquery.com/text/
This answer was clear from the API docs, though.
If you are ever curious how one or another function works, head to
http://api.jquery.com/[function-name]. If the answer is not in the main text, look through comments. If you haven’t found your answer yet, spend at least 2 minutes using Google. If you haven’t found your answer yet, ask in stackoverflow.