title: Not submitting the search form if the input is empty
body: <p>I have a search form and am stuck in one small thing &amp; the issue is:</p>
  
  <ul>
  <li>To not let the form be submitted if the input field is empty</li>
  </ul>
  
  <p>Please suggest the most efficient way using jQuery or php.</p>
  
  <p>Thank you in advance.</p>
  
  <p>Happy Coding</p>
  
  <pre><code>&lt;!--Search form--&gt;
  &lt;div id="searchbar"&gt;
      &lt;form method='GET' action='search.php'&gt;
  &lt;input type="text" placeholder="Search Database" name="searchkey" id="searchkey" /&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>