Here’s what id like to do. I have a table with a bunch of rows. I want only the first 1 to be shown, the rest will be styled with a display:none. Theres going to be a link that when click, will remove the display:none off of one additional row. Here’s what i got so far http://jsfiddle.net/dBdV7/ .
Problems:
- First of all, it says loadmore is not defined.. why?
- How do i get the load more link to go away once all the rows are showing?
- Im nt sure if that
slicewill work properly but it what im trying to do is limit the selected to children to just one . - And finally, i manually added the
hide_rowclasses, how can jquery automatically add it to all the children of the table onload except the first one?
EDIT:
To load more than one
tr(two by two or more…) find the demo in my comment below the answer.jsFiddle demo
Thanks to @Lix for the comment: to ADD/VIEW the next rows – than just use this jQuery:
BEFORE:
jsFiddle demo
I created a nice script that will allow you to loop!
That means if at some point you reach the last
trit will bring you back to the 1st one!HTML:
jQuery: