usage of minValue attribute
used only for input[type="number"] elements.
to make the input valid you have to pass a value greater than 10. By submitting the form you'll see a error message if the value is lower than 10.
var form = document.querySelector('#minValueForm');
form.addEventListener('submit', function(e) {
e.preventDefault();
})
usage of maxValue attribute
used only for input[type="number"] elements.
to make the input valid you have to pass a value lower than 10 also by submitting the form you will get a error message if the value is lower than 10.
var form = document.querySelector('#maxValueForm');
form.addEventListener('submit', function(e) {
e.preventDefault();
})
usage of minValue attribute within a input[type="text"] element Result: you should not see the min attribute on the input. ( Inspect input element in order to see that )