jquery - Click on <option> doesn't fire the click event when using ":input" Selector in FX and Opera -


i got this test case script checks wether input element has been clicked or not. if click on select field script fires true in browsers. if click on options script fires false in firefox , opera, true in chrome, ie , safari. why?

i came solution seems solve problem:

var isinput = $(e.target).is(':input') || $(e.target).is('option'); 

would correct solution or have better suggestion?

thanks in advance!


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -