Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Hide/Show Div's Reply To: Hide/Show Div's

#148199
g3logic
Participant

OK, I’m referencing the CodePen solution. Try this:

Remove this line:
slides.not(slides.eq(current)).hide();

And replace with these two lines:
slides.hide();
slides.eq(current).show();