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



Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected