I have this CSS rule:
#panelSeparator .active {
background: #fff url(../img/vgrabber.gif) no-repeat center;
opacity: 0.7;
}
I would like to do something like this in JS:
$('#panelSeparator').addClass('active');
How should I change the parameter of addClass in order to make that work?
Thanks,
Dan
Try removing the space between #
panelSeparator .activeso it is#panelSeparator.active.