What regular expression should I use if I want the input to be equivalent to a specific value? For example, the input field must be "100". What would be the expression for this?
I've already tried:
<input type="text" pattern="[1-1][0-0][0-0]" maxlength="3" disabled required/>
The above attribute would work without disabled but doesn't work if the input is disabled.
What I'm trying to do is to offer the user the ability to insert total marks allotted to 2 exams (mids and finals). And the total's input is done by jquery and should be hundred. I'm looking for a simple solution using HTML5 that if the total's input is not equal to hundred, it would give a validation error.
Thanks.