removeClass jquery statement not working
Posted
by Malcolm
on Stack Overflow
See other posts from Stack Overflow
or by Malcolm
Published on 2010-03-20T11:00:22Z
Indexed on
2010/03/20
11:01 UTC
Read the original article
Hit count: 551
jQuery
Hi,
I have the following JQuery statement and it is adding the class 'current' but it is not removing the class form the siblings.
Any ideas why?
$('.page_link[longdesc=' + page_num + ']').addClass('current').siblings('.current').removeClass('current');
Malcolm
© Stack Overflow or respective owner