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 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts