title: Updating values in current row using jquery
body: <p>Hi i have this form that was fixed from previous post. </p>
  
  <pre><code>&lt;form id="eForm" action=""&gt;
      &lt;table class="fMain" border="1" cellpadding="0" cellspacing="0"&gt;
          &lt;tbody&gt;        
              &lt;tr class="ist"&gt;
                  &lt;td&gt;In work&lt;/td&gt;
                  &lt;td&gt;09/25/2013&lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" value="3500.00" name="salesS" class="totalS fo" readonly=""&gt;&lt;/td&gt;                
                  &lt;td &gt;&lt;input type="text" value="23.00" name="cusS" class="cusS form-field-tiny readonly" readonly=""&gt;&lt;/td&gt;
                  &lt;td&gt;0.66%&lt;/td&gt;                                         
              &lt;/tr&gt;
              &lt;tr class="ist"&gt;
                  &lt;td&gt;In work&lt;/td&gt;
                  &lt;td&gt;09/25/2013&lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" value="2445.00" name="salesS" class="totalS fo" readonly=""&gt;&lt;/td&gt;                
                  &lt;td &gt;&lt;input type="text" value="444.00" name="cusS" class="cusS form-field-tiny readonly" readonly=""&gt;&lt;/td&gt;
                  &lt;td&gt;0.66%&lt;/td&gt;                     
              &lt;/tr&gt;                             
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I am using following jQuery to do some formatting. </p>
  
  <pre><code>$('.eForm tr.ist').each(function () {
      var num = $(this).find('#salesS').val();
      var cNum = $(this).find('#cusS').val();
      alert(num);
      alert(cNum);
      document.getElementById('salesS').value = pC(num);
      document.getElementById('cusS').value = pC(cNum);
  });
  </code></pre>
  
  <p>It is working fine all values are processed fine. But when it updates the values using
  following lines it is not updating current row. It just updates the top row.       </p>
  
  <pre><code>document.getElementById('salesS').value = pC(num);
  document.getElementById('cusS').value = pC(cNum);
  </code></pre>
  
  <p>I tried this </p>
  
  <pre><code>$(this).find('#cusS').val()=pC(num);
  </code></pre>
  
  <p>It didn't work. Please let me know how to fix it so it updates values in current row. Thanks </p>