Click event on select option element in chrome
google-chrome, jquery, select
Solution
I don't believe the click event is valid on options. It is valid, however, on select elements. Give this a try:
$("select#yourSelect").change(function(){
process($(this).children(":selected").html());
});
Problem
I'm having a problem in `Chrome` with the following: ``` var items = $("option", obj); items.each(function(){ $(this).click(function(){ // alert("test"); process($(this).html()); return false; }); }); ``` The `click` event doesn't seem to fire in `Chrome`, but works in `Firefox`. I wanna be able to `click` on a `option` element from a combo, if I do instead another kind of element, lets say `<li>` it works fine. Any ideas? Thanks.