I have an input box that has default value text assigned to it. How can I remove this text when the user focuses on the field::
CoDE
<input type="text" name="kp1_description" value="Enter Keypress Description">
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.
That should do it.
Updated, Forgot that focus does not have a 2nd parameter for the focus-out event because there is none, it has to be chained with blur:
http://jsfiddle.net/hDCsZ/
you should also think about creating your own function for this such as:
Then use like so