title: Jquery binding event on selected class
body: <p>Is it achievable in jquery to bind an event to a group of control that has certain class? It seems to me, it can't. I google a bit and all that came up are nothing to do with events. Here's how my code looks -</p>
  
  <pre><code>$('.numonly').bind('keypress',function(event){
      if (event.which &gt; 31 &amp;&amp; (event.which &lt; 48 || event.which &gt; 57)) return false;
  });
  </code></pre>