i have this html markup and i want to select some rows using jQuery.
When pressing the button with class \'cerrar\' i want to select the 3 tr with class \'hidden
You can just do like this:
$('.cerrar').click(function(){
// Get all the tr's with hidden class before button
var TRs = $(this).closest('tr').prevUntil("tr.main").andSelf();
});