I want to hide the rows from row index from 1 to 3. The below code is not working:
$("table").find("tr:gt(1)").find("tr:lt(3)").each(function () { $(this).hide() });
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first find() returns the matched elements and then the second one filters that selection further.
Try this selector
Also, slice() would be a great option (if not the best)