how to disallow input negative value in number type input field code example Example: no negative prices in field type number <input type="number" min="0">