title: Pressing Enter Key in input type text isn't working
body: <p>I have this HTML code</p>
  
  <pre><code>&lt;form method="post" action="adminstudent.php" enctype="form-data/multipart"&gt;    
      &lt;input type="text" id="searchStudent" class="form-control" name="txtsearch" placeholder="Search Student..."&gt;
      &lt;input type="submit" name="btnsearch" value="Search" class="btn btn-warning"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and JQUERY to trigger if ENTER KEY is pressed</p>
  
  <pre><code>$('#searchStudent').keypress(function(event){
      if (event.keyCode == 13) {
          $('#btnsearch').click();
      }
  });
  </code></pre>
  
  <p>But it just refresh when I pressed Enter Key.</p>