title: Check input value length
body: <p>I have a problem with input checking. I don't want to send the request if the input length is less than 3.</p>
  
  <p>My form:</p>
  
  <pre><code>&lt;form method='post' action=''&gt;
      Albūma nosaukums: # # this is the input --&gt;&lt;input id='titleeee' type='text' name'album_title' /&gt;&lt;br /&gt;
  
      Bilde Nr 1: &lt;input type='file' name='pic_nr1' /&gt;&lt;br /&gt;
      Bilde Nr 2: &lt;input type='file' name='pic_nr2' /&gt;&lt;br /&gt;
      Bilde Nr 3: &lt;input type='file' name='pic_nr2' /&gt;&lt;br /&gt;
  
      Aktīvs*: 
      &lt;select&gt;
          &lt;option&gt;Jā&lt;/option&gt;
          &lt;option&gt;Nē&lt;/option&gt;
      &lt;/select&gt;
  
      &lt;br /&gt;
  
      &lt;input Onclick='testlenght(document.getElementById("titleeee"), "Tavs albūma nosaukums ir pa īsu!", "3")' type='submit' value='Pievienot' /&gt;
  &lt;/form&gt;
  </code></pre>