Numeric Stepper Form Input Tutorial

Published :
Author :
Adam Khoury
In this tutorial you can learn to program the HTML numeric stepper form component into your web applications and web forms with JavaScript integration ready to go. We also give reference to using Ajax to process the data selected. <!DOCTYPE html> <html> <head> <script type="text/javascript"> function saveValue(target){ var stepVal = document.getElementById(target).value; alert("Value: " + stepVal); // alert() for testing purposes only // Use Ajax to send the adjusted value to server storage if needed // Ajax Post Video Tutorial - www.developphp.com/view.php?tid=1185 } </script> </head> <body> <input type="number" id="stepper1" name="stepper1" min="1" max="10" value="5" /> <br /><br /> <input type="button" onClick="saveValue('stepper1')" value="Submit" /> </body> </html>