title: Get and loop through all Select Boxes in a Table with Jquery
body: <p>i am new with jQuery.. i have a table with a number of  boxes in it. I want to grab all the select boxes in the table and loop through them..</p>
  
  <p>I am trying to create a function that does this and it looks like this:</p>
  
  <pre><code>function calculatePercentageTotal(tableName) {
      var total = 0;
      for (i = 0; i &lt;= $("#" + tableName + ' select').length; i++) {
          total += parseInt($("#" + tableName + ' select')[i].val());
      }
      return total;
  }
  </code></pre>
  
  <p>It's not working though.. any ideas? thanks!</p>