using each to iterate specifically from the second row
I have this fiddle
http://jsfiddle.net/thiswolf/QupLN/ and in it i am trying to get the value of each cell for use in my form
my code so far
- $('#table tr').each(function() {
- $.each(this.cells, function(){
- alert('td');
- });
- });
my form
- $('#id').val('0');
- $('#firstname').val('firstname');
- $('#lastname').val('lastname');
- $('#country').val('country');
- $('#city').val('city');
- $('#town').val('town');
- $('#gender').val('gender');
It would be my wish to have each cell in an array such that
- $('#firstname').val(cellValue[1]);
after the iteration
In my fiddle,i have the values and indexes of all rows available so.The problem is on how i get the value of each cell of a given row identified by a given index.