jQuery call function if Enter hit
<p>I am calling a function on button click code is given blow:</p>

<pre><code>&lt;input type="button" value="Search" id="go" /&gt;

$("#go").click(function ()
{
...
});
</code></pre>

<p>now I catch if user hit <kbd>enter</kbd> key from keyboard by this function:</p>

<pre><code>$("#s").keypress(function(e) {
    if(e.which == 13) {
        alert('You pressed enter!');
    }
});
</code></pre>

<p>but how could I call </p>

<pre><code>$("#go").click(function ()
    {
    ...
    });
</code></pre>

<p>both if user hits <kbd>enter</kbd> key &amp; on click <strong>GO</strong> button?</p>
