I am currently looking for a software/web development job preferably as a Rails-based developer.
Please email me at weston@westonganger.com. Thanks in advance for any leads!

Disable Scroll Wheel On Number Inputs

Posted by Weston Ganger

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:

Article Topic:Software Development - Javascript

Date:June 15, 2015

Recommended Posts