Is there a way to stop manual input in a type=number but still allow
changes with the "up/down" buttons?
I have an input:
<input type="number" name="amount" min="4" max="6" step="2" value="4"
id="amount" />
And I don't have a normal submit button to submit the info (uses javascript).
type=number works fine, but users can still type in any number they want,
I would like to stop users from being able to type in the input, but still
allow for changes using the "up/down" arrows that appear with type=number.
I have tried researching but cannot find anything. Is this even possible?
No comments:
Post a Comment