I was wondering how to use jQuery: gt () in an inclusive way. I am trying to show / hide table rows dynamically.
$('#' + tbodyId + ' > tr:gt(' + newRowStart + '):lt(' + rowsToShow + ')').show();
If I try to show the first 5 lines, let's say newRowStart = 0 and rowsToShow = 5 . This does not display the first row. Setting it to -1 does not work either. It would be very useful if there was an inclusive method, for example: gte (). Does anyone know how to do this?
thanks
source share