title: How can I restrict the text entered into an input text element using jQuery?
body: <p>I have an input text element being used as a jQuery UI datepicker with a custom date format. The date format allows months to be entered in as JAN, FEB, etc and so the constrained input allows all characters to go through. See <a href="https://stackoverflow.com/questions/3252295" title="question about datepicker">this question</a>.</p>
  
  <p>How can I restrict the text entered to match my date format "dd-M-yy"?</p>
  
  <p>Is there a way to use jQuery to make the input text element behave like a masked edit text box?</p>