title: jQuery - hide div when input length is less than 3 chafacters
body: <p>I would like to hide a div when the input length is less than 3 characters long.</p>
  
  <p><strong>Here is my code:</strong></p>
  
  <pre><code>&lt;div id="Container" class="content"&gt;
  &lt;input type="text" name="search" class="search" id="searchid" placeholder="Wyszukaj..." /&gt;&lt;br /&gt; 
  &lt;div id="result"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
  $('input[name=search]').change(function()
  {
        if( $(this).val().length &lt; 3 ) {
             jQuery("#result").fadeOut(); 
        }
  });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>IMPORTANT:</strong> That should work when user is changing this input.</p>
  
  <p>Thanks.</p>