user234369
user234369

Reputation:

jQuery events work in Firefox, not Chrome

I registered some click events in my code. They function properly in Firefox (Windows and 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?

Upvotes: 2

Views: 2933

Answers (1)

ACP
ACP

Reputation: 35268

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?

Upvotes: 3

Related Questions