title: Loop through selected table rows with JavaScript
body: <p>I have a table, containing a checkbox to select the whole row (or not).
  This selection is done through JavaScript (JQuery) by setting a class attribute on the row.</p>
  
  <pre><code>function SelectRow(pRowID)
  {
      $("#"+pRowID).toggleClass("selected");
  }
  </code></pre>
  
  <p>Next step, I want to loop through all selected rows of the table (to extract data from it).
  Apperently, when I want to loop through the table, there are no rows with the class attribute "selected". </p>
  
  <pre><code>    $("table tr.selected").each(function(){
          // get the data
      });
  </code></pre>
  
  <p>I finally found out what the problem is... obviously the JQuery script does not work on IE6. Problem is that IE6 is the only browser we have within the company, so it HAS to work on that one. No other browsers are allowed to be installed (that's why it took so long to found out the problem).</p>
  
  <p>So if anyone has a solution to make this work on IE6, I'd be greatly thankful.</p>