Time masking issue with maskedinput.
Hi All,
I am using maskedinput-1.3.min.js for masking time textbox. I have several issues in using the same.
while landing into the page, if no value is there I want to set value as __:__. that I am setting but if user focus on the box and without entering any value just click some where else, the value is getting empty. how to restore the value?
How to restrict the user to enter time not more than 23:59? I have done the following:
$.mask.definitions['5'] = '[0-5]';
$.mask.definitions['2'] = '[0-2]';
$(elem).mask('23:59'); //but when I do textbox focus, it is masking as _3:__ where I am not able remove or replace the value 3.
Please explain what is the meaning of
mask.definitions
Regards,
Ketan