How can I restrict text input to an input text element using jQuery?

I have an input text element that is used as a jQuery UI datepicker with a custom date format. The date format allows you to enter months in the form of JAN, FEB, etc., and therefore limited input allows you to bypass all characters. See this question .

How can I limit the entered text to my dd-M-yy date format?

Is there a way to use jQuery to make the input text element behave like a masked text box?

+3
source share
3 answers
+1

jquery date picker allready

"constrainInput" true. avcorse .

http://docs.jquery.com/UI/Datepicker#option-constrainInput

0

Source: https://habr.com/ru/post/1754743/


All Articles