-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct time mask #39
Comments
I'm also experiencing this issue. There's any patch to fix this? |
Hi, |
Hi @emaiax I use a similar to @mrapaka "hack", but built-in mask for time will be great and it would not confuse many users. $("input[alt='time']").setMask().keypress(function ()
{
var currentMask = $(this).data('mask').mask;
var newMask = $(this).val().match(/^2.*/) ? "23:59" : "29:59";
if (newMask != currentMask)
{
$(this).setMask(newMask);
}
}); |
@disshishkov I've used the same approch. Thanks a lot! :) |
There is way to have correct time mask? 23:59
Default options is 29:59, that it allows to enter 15:00, but it also doesn't restrict 25:00
The text was updated successfully, but these errors were encountered: