title: Jquery form validation how to require minimum input
body: <p>I am trying to figure out how to get my jquery validation working so that if a value is less than the desired amount it will display the error code. I can't figure out how to make this work correctly. It requires at least one character to be input but I want it to be at least 4. </p>
  
  <p>Any help appreciated </p>
  
  <p>My validation code looks like </p>
  
  <pre><code>   if($('#firstname').val() &lt; 3){
                  $('#firstname').parent().parent().find('.form-error').html("First Name is Required");
                  err++;
              }
  </code></pre>