Javascript function not being called onblur
<pre><code>function close() {
  console.log('close');
  $("#display").hide();
}
</code></pre>

<p>I am trying to call a closefunction when the user clicks out of the input box, but it doesn't seem to be working.</p>

<p>Doesn't work:</p>

<pre><code>&lt;input type="text" name="searchQuery" id="searchQuery"  onblur="javascript: close();" onkeyup="javascript: getSuggest(); "/&gt;
</code></pre>

<p>Works:</p>

<pre><code>&lt;input type="text" name="searchQuery" id="searchQuery"  onblur="javascript: alert('msg');" onkeyup="javascript: getSuggest(); "/&gt;
</code></pre>

<p>getSuggest returns false if that's relevant.</p>
