How can i validate a mimimum amount of chars in my text box?
<p>im trying to validate a credit card security number, ive set the max length to 3 but i need to make sure that the users enters at least 3 and i cant find any minlength ways to do it.</p>

<p>Security: <code>&lt;input type="text" name="secno" maxlength="3"&gt;</code></p>

<pre><code>var n=document.forms["myForm"]["secno"].value;
if (n==null || n=="" || isNaN(n)) {
  alert("Security number needed");
  return false;
}
</code></pre>
