calculate textboxes for each table row in jquery
<p>I am looping through a set of dynamic table rows, I am trying to capture the value of cell2 in each table row using jquery, but it returns the value of cell2 row1 every time, even though it recognises cells1 correct row value each time, can anyone tell me were I am going wrong please?  see below sample code.</p>

<p>Thanks for any help received.</p>

<pre><code>//html
&lt;table class=plantTable&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell1&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell2&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell3&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell1&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell2&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell3&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell1&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell2&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type=text value=0 class=cell3&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

//jquery
   tr = $(".plantTable tr").length;

   $(tr).each(function () {
      $(this).find($(".cell1").blur(function () {
      cell1val = parseInt($(this).val());
      cell2val = parseInt($(".cell2").val());  //Returns the value of cell2 in the first row only?
   }));
</code></pre>
