How to create trigger an onKey up function on texbox key press
<p>Hello I am new to Jquery i am using pure javascript till now.Now i am trying jquery . </p>

<p>HTML</p>

<pre><code>&lt;input id="scriptBox" type="text" onkeypress="return test(event)" /&gt;
</code></pre>

<p>Javascript </p>

<pre><code>function test(e) {
    if (e.keyCode == 13) {
        var tb = document.getElementById("scriptBox");
        eval(tb.value);
        return false;
    }
}
</code></pre>

<p>How to do this in jquery.</p>
