I have an input field with time in HH: MM. And I need to control that users can enter the correct time to prevent their wrong time.
Time in a 24-hour format regular expression pattern
([01]?[0-9]|2[0-3]):[0-5][0-9]
And I found the mask input plugin https://github.com/RobinHerbots/jquery.inputmask
But I do not know how to do what I want. thanks a lot.
source share