Jquery Determine which button by keyup
<p>Hi have some buttons labeled A-G. The id's on the buttons are as follows.</p>

<pre><code>"btn_A"
"btn_B"
"btn_C"
etc...
</code></pre>

<p>I am running a keyup function as follows.</p>

<pre><code>$(document).keyup(function (event) {
     var theButton =  "btn_"+String.fromCharCode(event.keyCode);
     alert(theButton)
});
</code></pre>

<p>That gets me the correct buttons "id", but how can I then do something wit the button. Like get the <code>text()</code> from it or <code>hide()</code> it etc.</p>

<p>The buttons are defined as follows:</p>

<pre><code>&lt;button id="btn_A"&gt;A&lt;/button&gt;
&lt;button id="btn_B"&gt;B&lt;/button&gt;
&lt;button id="btn_C"&gt;C&lt;/button&gt;
</code></pre>

<p>What I am trying to do is when someone presses the correct key on the keyboard the corresponding button would hide(). For example if they pressed "A" the the A button would hide.</p>
