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


i have table of checkboxes , want select 2nd 4th td row of 7 tds. want select input:checkboxes of 2nd 4th td, of first row in table,

my code far

$('tr:nth-child(1) td:gt(2) input:checkbox') 

any suggestions?

thank you

you can use slice method:

$('tr:first td').slice(1, 4).find('input[type=checkbox]'); 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo