jQuery events work in Firefox, not Chrome
I registered some click events in my code. They function properly in Firefox (Windows a开发者_C百科nd Mac) but don't execute in Chrome (tried Windows and Mac beta).
The purpose of the JavaScript is to show the correct number of text inputs based on the value of the select element.
Here is the code: http://www.savetherobots.org/users/jkost/substitutioncipher.php
The script is bug-free according to Firebug. Is something wrong with the code?
Hai ,
For Select boxes, you need to register a handler for a "change" event rather than a "click" event. It's strange that Firefox and IE work with the click event.
Have a look at this Click event on select option element in chrome
and JQuery Click event not being triggered in Safari?
精彩评论