don't allow user to fill 0 and negative value in input box code example Example: no negative prices in field type number <input type="number" min="0">