[jQuery] Re: NEED HELP::siblings isssue in jquery

2009-12-10 Thread Scott Sauyet
On Dec 10, 1:56 am, Bideshi itbide...@gmail.com wrote: i've a little issue related to siblings in jquery, i'm using sibling to deselect the previous selected link after clicking on the new link, but it's now working, please let me know where i'm missing. [ ... ]                

[jQuery] Re: NEED HELP::siblings isssue in jquery

2009-12-10 Thread Greg Tarnoff
Easier yet, give your UL an ID then $('#myID li a').click(function() { $('#myID li a').removeClass(bg); $(this).addClass(bg); }); --Greg