how to get exact id values of a table
<p>I'm trying to sort out this problem but have yet to get results. I tried to get the exact id values of the row which I edit in order to perform an update.  </p>

<p>I can get get my current cell value but I can't get the corresponding id values of the cell. I iterate over the table id value which in turn get's all the id values of the table.</p>

<p>I'm using this jquery code for iteration:</p>

<pre><code>$('#table').ready(function() { 
     $(this).find('.filename').each( function() { 
          alert($(this).html()); 
     }) 
})
</code></pre>

<p>Then I tried this simple JavaScript: </p>

<pre><code>var fid= document.getElementById("filename").textContent;
</code></pre>

<p>It gets only the first id value of the table.<br>
For example, if I edit the first row the id value is 53.<br>
If I edit the second row the id value should be 52 but it gets only 53.</p>

<p>See <a href="http://stackoverflow.com/questions/12121108/passing-cell-value-inorder-to-update-table-using-ajax-post"><strong>this link</strong></a>, I have posted this question previously.</p>
