HTML 5 has various input types such as date, color, datetime, range, month, email etc. Input type number was also introduced in HTML 5 which allows user to select a specified number from give number range. For example just follow the HTML markup.
<label>Select a Number between 1 and 5:</label><input type="number" name="quantity" min="1" max="10">
Disadvantage of using HTML 5 Input
Its Major disadvantage is that it is not supported in MOZILLA FIREFOX (till version 28.0) and IE 9 and below versions.
How to overcome the disadvantage?
You can use the Jquery UI spinner.