I want to get only positive values, is there any way to prevent it using only html
Please don't suggest validation method
Html – ny way to prevent input type=”number” getting negative values
htmlinputnumbers
Related Topic
- Javascript – How to sort an array of integers correctly
- Html – How to style a
- Javascript – Storing Objects in HTML5 localStorage
- Html – How to create an HTML button that acts like a link
- Javascript – hide the HTML5 number input’s spin box
- Html – ny way to change input type=”date” format
- Html – Hide scroll bar, but while still being able to scroll
- Html – float input type in HTML5
Best Answer
Use the
min
attribute like this: