Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
Number: <input type="number" id="myNumber">
<p>Click the button to increment the value of the number field by 5 (each time you click).</p>
<button onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> The stepUp() method is not supported by Internet Explorer.</p>
<script>
function myFunction() {
  document.getElementById("myNumber").stepUp(5);
}
</script>
</body>
</html>