Sanjay
Sanjay

Reputation: 19

Referencing a table within a table using jquery

I have two tables with id's "table1" and "table2". table2 is present inside the third column of table1. Now I want to reference the values in table2 using jquery. How do I go about accomplishing this?

Upvotes: 0

Views: 42

Answers (1)

Luuuud
Luuuud

Reputation: 4439

If the second table has id table2 you can get it in jQuery via $('#table2'). To get all <td>'s in the table you can for instance use $('#table2 td').

Upvotes: 1

Related Questions