javascript - Scroll the mouse changes the value of my select element -


i'm having problems mouse scroll in browsers, if user goes or down within website affects selects several values have. happens in browsers , figured there way through javascript cancel event or cancel values changed.

you should trigger blur event on select:

$('select').on('change', function() {     $(this).blur();       // or     $(this).trigger('blur'); }); 

docs: https://api.jquery.com/blur/


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -