title: How to setup length in search box
body: <p>I have search box connected to mysql database.</p>
  
  <p>I'am trying to set the min charchters in search box to be 3 letters to start a search, but I want it at the same time accept search by these two letters "th" together.</p>
  
  <p>I'm trying to setup the length like that but it doesnt work!
      Here is my code:</p>
  
  <pre><code>$('#search_text').keyup(function(){
    var search = $(this).val();
    var minlength=3;
    if(search != '') {
      if (event.key === "Enter") {
        load_data(search);
      } else {
        return;
      }
    }
  });
  });
  </code></pre>