Sunday, 18 August 2013

How to select 2nd to 4th td from a row inside jQuery selector

How to select 2nd to 4th td from a row inside jQuery selector

I have a table of checkboxes and I want to select the 2nd to 4th td from a
row of 7 tds. Specifically I want to select the input:checkboxes of the
2nd to 4th td, of the first row in a table,
My code so far
$('tr:nth-child(1) td:gt(2) input:checkbox')
Any suggestions?
Thank you

No comments:

Post a Comment