I’ve observed that, in Google Chrome, setting an <option> as selected via Javascript does not trigger the respective <select> tag’s change event.
Can I count on this behavior holding true in all other modern browsers?
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.
Setting an option as selected via JavaScript or selecting an option by focusing then using up and down buttons to select, is not accepted as an event by the
onchange()event handler as evident by the following links :PS : A similar situation occurred when i tried to evoke
<element onmousedown="doStuff();">by callingelement.click();