title: JavaScript / jQuery input[type=text] pattern
body: <p>Ok well, i have an input in a form, which is a date input. I want it to accept characters based on a pattern like "XX/XX/XXXX". Currently it accepts only numbers and "/". But i don't want users to enter dates like "X/XXXX/XX" or some other kind, and i don't want to be able to write it wrong like "//XX/XXX/XXX". I don't know how to use js on this one, or jQuery so the user inputs the date based on the pattern and not in some other way.</p>