Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Initially show only X table rows
var numShown = 15; // Initial rows shown & index
// Hide rows and add clickable div
$('.cinematiclist').find('tr:gt(' + (numShown - 1) + ')').hide().end().append('<tr id="cinematicmore"><td colspan="4" style="cursor:pointer; text-align:center;">Zeige alle</td></tr>');
// onclick remove trigger an show full table
// Show all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment