jquery math in repeat
<p>I can't seem to get this right.  I'm looking for the right jQuery to do math on one visible and 4 hidden fields, but to make this easier, I only require one of each.  </p>

<p>I'm trying to get a number entered into the input 'oh' and have it calculate on blur of the 'oh' field in that row.  The math would be oh - par and the result would display in the span with the id "ord".</p>

<p>I've tried quite a few different approaches, but was curious what the pros would come up with.  I can get it to work with one row, but not be correct for the next row.  </p>

<pre><code>&lt;form action="orderProcess.php" method="post"&gt;
  &lt;table id="newOrder" border="0" class="infoTable"&gt;
    &lt;tr&gt;
      &lt;th&gt;name&lt;/th&gt;
      &lt;th&gt;par&lt;/th&gt;
      &lt;th&gt;type&lt;/th&gt;
      &lt;th&gt;vendor&lt;/th&gt;
      &lt;th&gt;sort&lt;/th&gt;
      &lt;th&gt;deal&lt;/th&gt;
      &lt;th&gt;Pack&lt;/th&gt;
      &lt;th&gt;OH&lt;/th&gt;
      &lt;th&gt;moq&lt;/th&gt;
      &lt;th&gt;&amp;nbsp;&lt;/th&gt;
      &lt;th&gt;Order&lt;/th&gt;
      &lt;/tr&gt;
    &lt;tbody&gt;
    &lt;?php do { ?&gt;
      &lt;tr data-id="&lt;?php echo $row_connList['id']; ?&gt;"&gt;
        &lt;td&gt;&lt;?php echo $row_connList['name']; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row_connList['par']; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row_connList['type']; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row_connList['vendorId']; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row_connList['sortId']; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row_connList['deal']; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row_connList['casePack']; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;input name="par" type="hidden" id="par" value="&lt;?php echo $row_connList['par']; ?&gt;" /&gt;
          &lt;input name="moq" type="hidden" id="moq" value="&lt;?php echo $row_connList['minOrderQty']; ?&gt;" /&gt;
          &lt;input name="mot" type="hidden" id="mot" value="&lt;?php echo $row_connList['minOrderType']; ?&gt;" /&gt;
          &lt;input name="pack" type="hidden" id="pack" value="&lt;?php echo $row_connList['casePack']; ?&gt;" /&gt;
          &lt;input name="oh" type="text" id="oh" size="6" /&gt;
        &lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row_connList['minOrderQty']; ?&gt;&lt;/td&gt;
        &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td&gt;&lt;span id="ord"&gt;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;?php } while ($row_connList = mysql_fetch_assoc($connList)); ?&gt;
      &lt;/tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;&lt;input name="Submit" type="button" value="Submit" /&gt;&lt;/td&gt;
       &lt;/tr&gt;
  &lt;/table&gt;&lt;/form&gt;
</code></pre>
