title: Don't submit form unless text field has more than 2 characters
body: <p>I have this simple form for my websites search (Wordpress)</p>
  
  <pre><code>&lt;form action="/" method="get"&gt;
      &lt;label for="search"&gt;Search&lt;/label&gt;
      &lt;input type="text" name="s" id="search" value="&lt;?php the_search_query(); ?&gt;" /&gt;
      &lt;input type="image" class="search-btn" alt="Search" src="&lt;?php bloginfo( 'template_url' ); ?&gt;/img/magnifier13.png" width="16" height="16" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I don't want people to be able to search for anything without putting less than 2 characters in the search field, How do I go about doing this? preferably with JS.</p>