title: Looping through <tr> when table ID is passed
body: <p>I have four HTML tables and have to compare data from one table with one that is selected by the user. I am passing the user-selected table ID into this function, but I don't know how to loop through the rows of this table:</p>
  
  <pre><code>function callme(code) {
  
      var tableName = 'table'+code;
      //alert(tableName);
  
      //How to do loop for this table?? HELP!!
      $('#tableName tr').each(function() {   //how to do
          if (!this.rowIndex) return; // skip first row
  
          var customerId = $(this).find("td").eq(0).html();
          alert(customerId);
          // call compare function here.
      });
  }
  </code></pre>
  
  <p>It should be something very simple for a experienced jQuery programmer. Here is my jsfiddle: <a href="http://jsfiddle.net/w7akB/66/" rel="nofollow">http://jsfiddle.net/w7akB/66/</a></p>