When is one called versus the other? Is there a situation were onChange would be called but onBlur would not be called?
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.
The
onBlurevent is fired when you have moved away from an object without necessarily having changed its value.The
onChangeevent is only called when you have changed the value of the field and it loses focus.You might want to take a look at quirksmode’s intro to events. This is a great place to get info on what’s going on in your browser when you interact with it. His book is good too.