I have a problem to validate data- mask.
<strike><input type="text" data-mask="a-99999999-9"></strike>
I need you where going "a" only become available the letters " VEJPG ".
if anyone knows how it could do so thanks.
JQuery Mask plugin doesn't recognize "a" in the mask expression, it supports "A" This will work:
<strike><input type="text" data-mask="A-99999999-9"></strike>
If you want the first letter to only V or E or J or P or G then you have to call the mask constructor in javascript as follow:
$("#idOfTextInput").mask("v-9999999-9",{translation: {'v':{pattern:/[VEJPG]/}}});
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