Combine JS function mouseup
<p>I want to combine JS functions, but that's not working. Does someone have a suggestion for my code?</p>

<pre><code>$(document).ready(function(){
  $(".searchs").keyup(function() {
    var searchbox = $(this).val();
    var dataString = 'searchword='+ searchbox;
    if(searchbox=='') {
      $("#display").hide();
    } else {
      $.ajax({
        type: "POST",
        url: "searchs.php",
        data: dataString,
        cache: false,
        success: function(html) {
          $("#display").html(html).show();
        }
      });
    }
    return false;
  });
  $(".searchs").focus(function(){
    var seachbox = $(searchbox).val();
    if(seachbox != '') {
      $("#display").show();
    }
  });
});
$(document).mouseup(function(e) {
  if ($("#display").is(":visible") &amp;&amp; $(e.target).parents$("#display").length == 0) {
    $("#display").hide();
  }
});
</code></pre>

<p>For reference, I got that script from <a href="http://jsfiddle.net/bqQqN/15/" rel="nofollow">http://jsfiddle.net/bqQqN/15/</a>. What I want to do is to add the mouseup function to my code. Anyone?</p>
