views:

10

answers:

1

Say,how to select the tds of the 1st column with jQuery?

A: 

Given HTML like this:

​<table>
  <tr><td/><td/></tr>
  <tr><td/><td/></tr>
</table>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

for example you can set the text of each first td in each row with this jQuery:

$("table tr td:first-child").text("hello");​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
Strelok