title: Jquery Iterate Through All Checked Boxes and Remove Class
body: <p>I'm currently using jQuery and would like some help on iterating through all "checked" checkboxes and remove a class (called "new_message") of the parent table row.</p>
  
  <p>I've got a basic concept, but I can't quite figure the entire thing out.</p>
  
  <p>Here is what I am currently using:</p>
  
  <pre><code>$("#unread_button").click(function (event) {
  event.preventDefault;
  $(":checkbox:checked").each( 
  function() 
  { 
      if (this.checked) 
      { 
          var divs = $.makeArray($(this).parents("tr").attr("id"));
       }
  $(divs).each(
      function(int)
          {
              $(this).removeClass("new_message");
          }
      );
    });  
  });
  </code></pre>
  
  <p>Eventually, this will be updating a database as well, so if the code can be tailored to accomodate both, that'd be great.</p>
  
  <p>Any guidance is much appreciated!</p>