title: Trigger an event on `click` and `enter`
body: <p>I have a searchbox on my site that.  Currently, users must click the submit button next to the box to search via jquery's post.  I would like to let users also press enter to search.  How can i do this?</p>
  
  <p>JQUERY:</p>
  
  <pre><code>$('document').ready(function(){
      $('#searchButton').click(function(){
          var search = $('#usersSearch').val();
          $.post('../searchusers.php',{search: search},function(response){
              $('#userSearchResultsTable').html(response);
          });
      });
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type='text' id='usersSearch'  /&gt;&lt;input type='button' id='searchButton' value='search' /&gt;
  </code></pre>