block input field from going below 0 code example Example: no negative prices in field type number <input type="number" min="0">