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
Post a Comment