title: Multiple classes on keyup jquery
body: <p>I have a function that I want to execute on <code>keyup</code> for 2 different <code>class</code> of <code>textfields</code>.
  The code below works well when only one class is assigned to <code>keyup</code> but when I add a second <code>class</code> it works but there is a lot of lag. Either <code>class</code> by itself works fine so I assume I added the second <code>class</code> to the event handler improperly. The code is:</p>
  
  <pre><code>$(document).ready(function(){
  
      $(".class1").each(function() {
  
          //!!!!!!! .class2 here adds lag !!!!!!!!!!
          $('.class1,.class2').keyup(function(){
              myFunction1();
  
          });
      });
  
      $(".class2").each(function() {
  
          $(this).keyup(function(){
              myFunction2();
          });
  
      });
  });
  </code></pre>