I have an input field that is set as a date picker. When I initialize the dateFormat parameter, it stops the input restriction, and I can enter all kinds of garbage dates in the text box. Why is this happening? I would like to have limited input yet work when setting up a custom date format.
myTextInput.datepicker({ dateFormat: "dd-M-yy" });
If I do not set the dateFormat parameter, the input will be limited as expected.
source
share