I have a jquery-ui autocomplete text box and i want to set a default text for the text box and when the text box get focus i want to remove it.
- How do i set the initial text for the text box?
- Ho do i remove the text on focus?
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.
I managed to solve it:
the only way that i damaged to use the focus event is like this:
$("SELECTOR").autocomplete({....
}).focus( function(event, ui) {
......
});