Is there a way to do that? Basically, I would like to detect when the user clears the field, as there are other fields that depend on that.
I used a change event, but it didn’t fire when I cleared the input box.
Any suggestions?
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 would suggest using a couple different handlers to make sure you catch the user clearing the field
some keys are easier to detect on keyup and some on key down , if you want to make sure the user isn’t highlighting then deleting , or pressing , delete, backspace , ect. you need a couple of different handlers