Open saleh-esmaili opened 2 years ago
Hi, I am trying to make an input that user can only enter these charecters: X, Y, Z, 0 to 9, +, -, *, /, %. What should I do?
As far as I know cleave does not support your specific need. However you can use the HTML5 pattern attribute to validate the input.
<input name="name" pattern="^[XYZ0-9\+\-\*\/\%]+$"/>
Hi, I am trying to make an input that user can only enter these charecters: X, Y, Z, 0 to 9, +, -, *, /, %. What should I do?