When will i want to use JavaScript to manipulate the title attribute instead f just title attribute, for tooltips?
Share
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.
You would use Javascript if you want the tooltip to change over the course of the form. For example, if you want to display a different tip after a button was clicked, then you would set the tooltip in the click handler for the button.
If the tooltip will never change, then just include it in the element.