I am using masked input in an input text box for a date in MM / YYYY format. ( http://digitalbush.com/projects/masked-input-plugin/ )
My javascript code is:
jQuery(function($){
$(".date").mask("12/2099");
});
And the HTML code:
<input type="text" class="date">
When I start to write something, it takes the value 12/2099 in the field, and it is impossible to write another thing.
If I write 99/9999 in a javascript mask, users can write a date, which is a lie ... so I'm not doing what I need to do?
I want users to be able to write from 01/1990 to 12/2099, perhaps adding to the restriction with a date value of + 20 years or something like that ...
Tomaw source
share