I want to implement simple jquery mask pluging using jquery input.mask plugin, however, i cannot make it work with regex. What i want to achieve is:
99:59:59
I want to implement simple jquery mask pluging using jquery input.mask plugin, however, i cannot make it work with regex. What i want to achieve is:
99:59:59
You mean something like this:
$('#test').inputmask('Regex', {
regex: "^[0-9]{2}:[0-5][0-9]:[0-5][0-9]$"
});
You can do it like this.
The validator is an expression. Telling the "5" in the mask string to contain only numerical characters from 0 to 5.
edit: changed '-' to ':'