i have using<input type="number">
. in that i don't want user can enter manually numbers in to input. user only increase and decrees numbers by step then is it possible.
You can do it by cancelling the keydown
event. Either inline (<input type="number" onkeydown="return false">
), or within an event handler.
Use jQuery
$('input[type="number"]').keydown(function (e) {
e.preventDefault();
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With