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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -