I'd like to write some code where it displays a complete listing for a year, but initially only show the first 6 weeks (so, 42 days) and then you can click a button to view the rest (no need for a toggle).
I was going to do this using PHP, and setting a class on each of the ones I'd want to hide, which is fine, I guess, I just wasn't sure if there was a more efficient way of doing it in jQuery.
$("table tr:gt(5)").hide();
will hide all of them after/greater than the sixth row.
slice() - http://api.jquery.com/slice/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With