title: jQuery input mask length
body: <p>I have an input field and I want to limit it to alphanumerical (A-Z, a-z, 0-9) characters only, with a MINIMUM field length of 5, and a maximum length of up to 15 characters total.</p>
  
  <p>Does anyone know how I can do this using jQuery?</p>
  
  <p>I'm trying to use the jQuery input mask by digitalBush - <a href="http://digitalbush.com/projects/masked-input-plugin/" rel="noreferrer">http://digitalbush.com/projects/masked-input-plugin/</a></p>
  
  <p>The problem is that UNLESS I enter 15 characters, the field goes blank. If I enter "012345678912345" (15 characters) in the input field then the value is stored and it's fine.</p>
  
  <p>But if I enter "12345" as a username, when that input box loses focus its value goes back to being blank. Is there something that I can change in the "definitions" or options somewhere that fixes this?</p>
  
  <p>Many thanks for your help :)</p>
  
  <p>Tim</p>