Moja Ra Moja Ra - 1 year ago 70
jQuery Question

How do loop through a table to select a specific table cell on each row using jquery?

I am trying to place text in the 6th table cell of each row of my table. But all I am getting is the first row selected:

$('tbody tr:even td:eq(5)').each(function(){

What adjustment do I need to make?

Answer Source

I think that the following should work:

$('tbody tr').each(

JS Fiddle demo.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download