I’m not able to trigger programmatically onChange event of a select tag.
http://jsfiddle.net/XqnLE/
did I miss something?
Thanks.
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.
Your
TestItfunction is out of the scope, since in JSFiddle code inside JavaScript window usually is configured to be inside DOM ready handler.It will work fine if you place it in the global scope:
DEMO: http://jsfiddle.net/XqnLE/2/
It will also work if you set
no wrapinstead ofonLoadwhen choosing the JQuery settings.DEMO: http://jsfiddle.net/XqnLE/5/.