Disable Scroll Wheel On Number Inputs

Posted by Weston Ganger on June 15, 2015

I dont really like how the scroll can increase or decrease the number inputs. I was finding myself wrongly changing data.

Heres how to disable it on all number inputs.

  $(':input[type=number]').on('mousewheel',function(e){ $(this).blur(); });

Related External Links:

Posted in Javascript and Tagged with jquery javascript 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts