In jQuery, what are some of the key differences between using :eq() and :nth-child() to select any elements ?
Also in general, for the starting index, in which case
$("#dataTable tr:nth-child(1) td:nth-child(2)").html();
here dataTable is a table
Name
EnrollNo.
Somdip IT001
Sanyal IT002
The nth-child
selector of jquery will help you to fetch the exact cell values from this table. A practical example where tr:nth-child(1)
td:nth-child(2)
fetches the 1,2 cell of the table.