title: onkeypress event not firing in ie
body: <pre><code>$(".tbSearchBox").keyup(function (event) {
      if (event.keyCode == 13) {
          alert("ye");
          searchSet = $(this).val();
          $(".btnSerachButton").click();
      }
  });
  </code></pre>
  
  <p>Im using the above code to detect whether the user has typed something in a search box then hit enter instead of pressing the search button. this works for all browsers apart from IE. IE can read the on keyup event but bypasses the if statement used. Any idea why?</p>