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'); });
Comments
Post a Comment