Possible Duplicate:
JQuery: How to select rows from a table
I want to select specific rows of a table based on certain conditions using jquery. For example, If a table has 25 rows with a checkbox column to check each row, I want to specify a condition and if that condition is true, then only the checkbox should be checked, for example, 5 rows satisfy that condition, so only 5 rows should be checked. This selection may be dependent on other columns of the table. How do I achieve this with jquery?