Search code examples
jqueryclassselectorvisible

JQuery double class :visible selector


Just a quick one. I am trying to work it the next element that is visible of a class and then select a class contained within it.

The first I retrieve like this.

var panelnext = $('.sidewrapper:visible').next();

Now to get the class within it I tried this

var paneltarget = $('.sidewrapper:visible').next('.panelcontent');

That did not work unfortunately. Any ideas?

Marvellous


Solution

  • Do you mean $('.sidewrapper:visible').next().find('.panelcontent')