title: button click event is triggered after keypress using jQuery
body: <p>I have these codes</p>
  
  <pre><code>$('#search-button').keypress(function (e) {
     if ((e.which &amp;&amp; e.which == 13) || (e.keyCode &amp;&amp; e.keyCode == 13)) {            
          search();
     };
  });
  
  $('#search-button').bind('click', function () {
     search();
  });
  </code></pre>
  
  <p>under the search module I have an alert, now whenever I press Enter when the button is in focus, the search() under the click event also triggers. Please help. Thanks.</p>