The best you can achieve with HTML only (documentation):
<input type="number" min="0" step="1"/>
More Related Contents:
- How to allow only numeric (0-9) in HTML inputbox using jQuery?
- How to force a html5 form validation without submitting it via jQuery
- Google ReCAPTCHA how to make required?
- HTML5 validation before ajax submit
- How to force an HTML form to validate without submitting it via jQuery
- Can't able to apply css file in html5
- Alert jQuery + CSS [closed]
- jquery’s append not working with svg element?
- Set class validation for dynamic textbox in a table
- Can you autoplay HTML5 videos on the iPad?
- A simple jQuery form validation script [closed]
- Slide right to left?
- How to get the full path of the file from a file input [duplicate]
- How to detect input type=file “change” for the same file?
- JavaScript: Changing src-attribute of a embed-tag
- How do I get the entire page’s HTML with jQuery?
- Resizable table columns with jQuery [closed]
- HTML5 Video autoplay on Mobile Browser
- Replace Div with another Div
- Remove span tag in string using jquery
- How do you create a toggle button?
- html5 audio player – jquery toggle click play/pause?
- position fixed header in html
- HTML Web Worker and Jquery Ajax call
- Remove elements with only a space using jQuery
- jquery ajax load certain div
- jQuery toggle class
- Click the poster image the HTML5 video plays?
- jQuery remove tag from HTML String without RegEx
- Chrome file upload bug: on change event won’t be executed twice with the same file