I have a search input and I hid the submit button. Instead, when the user presses enter, a dropdown appears with the result using the following js:

```
$(function() {
  $("form input").keypress(function (e) {
    if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
      $(this).next("#searchResult").addClass('show');
      return false;
    } else {
      return true;
    }
  });
});

```

How do I ensure that the class of `.show` is removed if the user clicks outside of `#searchResult`?