bale3
bale3

Reputation: 383

jQuery click event on select option not working with jQuery Mobile framework

I'm trying to fire a click event on my select options.

This is working fine in FF/Safari if the selectlist is a normal multiselect box like this:

http://jsfiddle.net/YZUBs/47/

However, if i include the jQuery Mobile framework, the click event does not trigger anymore:

http://jsfiddle.net/YZUBs/48/

Anyone?

Upvotes: 1

Views: 7414

Answers (1)

gdoron
gdoron

Reputation: 150313

The click event on <option> isn't standard and thus not supported in all browsers.
You should use the onchange event instead of onclick.

You can read all the Q&A in this search, this is the subject for all of them...

Updated fiddle

Upvotes: 1

Related Questions