Trouble applying my function to more than one text box
<p>so I am completely new to jquery and am trying to figure out how to apply my function to more than one textbox, I ultimately need to hook it up to another function similar to the one I have, but I just cannot figure out how to hook them both up so they do not allow certain inputs.  Any advice on this is much appreciated.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;


&lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

$(document).ready(function(){


$("#textBox").keypress(function (e)  //the function will check the  textbox
{ 


  if( e.which!=8 &amp;&amp; e.which!=0 &amp;&amp; (e.which&lt;48 || e.which&gt;57))
  {
    return false;
  } 
});





});
&lt;/script&gt;

&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;font face='courier'&gt;
Numbers Only : &lt;input type="text" id="textBox" /&gt;&lt;br/&gt;
Letters Only : &lt;input type="text" id="textBox2" /&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Thanks in advance,</p>
