jQuery: selector (classname with space)

Class names can’t have spaces in them. What you have there is two classes:

<div class="panel current">

This div has two classes: panel and current. That’s easily selected:

$("div.panel.current")...

That means select all divs that have class panel and class current.

Leave a Comment