I have a field that accepts the year, so I have created
input type=\"number\"
and implemented keydown event to restrict
May be this will work , you can use the Regular Express to validate only number and
^[0-9\.\-\/]+$
and also you can use the .length method to insure that you have specific length