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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…