[jQuery] Re: Pagination control jquery -- Need some help

2009-02-26 Thread Doug C
Thanks man. I'll give it a shot and let you know. On Feb 26, 2:36 pm, Frederik Ring wrote: > Sorry I think it has to be: >  $('.page:visible').hide().prev('.page').show(); > > and > >  $('.page:visible').hide().next('.page').show(); > > Or is the second class selection not necessary? > > On Feb

[jQuery] Re: Pagination control jquery -- Need some help

2009-02-26 Thread Frederik Ring
Sorry I think it has to be: $('.page:visible').hide().prev('.page').show(); and $('.page:visible').hide().next('.page').show(); Or is the second class selection not necessary? On Feb 26, 8:33 pm, Frederik Ring wrote: > Why don't you just do it like: > > $('#prev').css('cursor','pointer').c

[jQuery] Re: Pagination control jquery -- Need some help

2009-02-26 Thread Frederik Ring
Why don't you just do it like: $('#prev').css('cursor','pointer').click(function(){ $('.page:visible').hide().prev().show(); } Same with next. $('#next').css('cursor','pointer').click(function(){ $('.page:visible').hide().next().show(); } You will pro On Feb 26, 5:43 pm, Doug C wrote: > I wr