Stupid question time – how do you update the title attribute of a control? Obviously this does not work:
$("#valPageIndex").attr('title') = pageIndex;
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.
Basically,
$("#valPageIndex").attr('title')is just for getting its value, while$("#valPageIndex").attr('title', value)is for setting it.Here’s the official doc: http://docs.jquery.com/Attributes/attr.