using jquery i want the a div to hide when the input is empty?
<p>For example say i have a text box and a hidden div called suggestions</p>

<pre><code>$("#suggestinput").on({
  keyup: function(){
    $("#suggestions").addClass("active");
  },
  blur: function () {
    $("#suggestions").removeClass('active');
  }
 //another event to know if input is empty while on focus, then removeClass('active');
});
</code></pre>

<p>The first event is when the user types in the input show suggestion, the second one is blur, so when the user unfocuses on the input the suggestions el will hide, i want a third event to check while on focus if the input is empty remove active class.</p>

<p>Working example is here thanks: <a href="http://jsfiddle.net/HSBWt/" rel="nofollow">http://jsfiddle.net/HSBWt/</a> </p>
