title: Is it possible to disable 'step' in input type number
body: <p>I would like to know if its possible to override the browser step behaviour or to intercept and change the step value before steping or prevent stepping from happening as a function for input type number.</p>
  
  <p>For example when incrementing using up and down increment/decrement arrows/scroll stepping etc, I would like to manipulate the stepping process before it happens.</p>
  
  <p>eg:</p>
  
  <pre><code>&lt;input type="number" min="1.01" max="1000" id="num"/&gt;
  </code></pre>
  
  <p>I tried not giving a step attribute. This did not work.</p>
  
  <p>Step attribute only takes values 'all' and numbers, it does not take false.</p>
  
  <p>So I cannot disable it using any attributes. I also tried over riding the stepUp, stepDown functions but that does not get called when the browser step function is happening.</p>
  
  <p>I basically want it either to not step at all or if it does step, then do a custom step function, in which I decide the step value based on its current value.</p>
  
  <p>I tried modifying on change, but this does not seem to work for the current step, only for the next step.</p>
  
  <p></p>
  
  <p>Here is the javascript:</p>
  
  <pre><code>$("#num").on("keyup change focusin focusout", function (e) {
      $(this).attr("step", getStep($(this).val()));
  });
  
  function getStep (val) {
      val = parseFloat(val);
      var step = 1;
      if (val &lt; 5) {
          console.log('here');
          step = 2;
      }  else if (val &lt; 10) {
          step = 5;
      }
      return step;
  }
  </code></pre>
  
  <p><a href="http://jsfiddle.net/urrLmm4L/" rel="noreferrer">http://jsfiddle.net/urrLmm4L/</a></p>
  
  <p>Here if I enter 5 it should increment by 5, but it increments by 1. Next time it increments by 5. I want to override the step value before stepping if possible.</p>
  
  <p>I am not trying to solve this by using a text input, I am trying to identify whether there is a means to override the stepping function.</p>