[jQuery] Re: Assign 'active' to nav element

2008-10-01 Thread yellowboy
d a filter:first on the end of my script above, but with no success. Any ideas? Bradley Sepos wrote: > > > Just extend Michael's code a bit: > > $(this).addClass('active').siblings().removeClass('active'); > > Bradley~ > > > On Oct 1, 3:

[jQuery] Re: Assign 'active' to nav element

2008-10-01 Thread yellowboy
dd this inside the click function: > > $(this).addClass('active'); > > -Mike > >> From: yellowboy >> >> Yes, that is why I am seeking some assistance. >> >> Not sure how to implement it within my current code. I know >> how to assig

[jQuery] Re: Assign 'active' to nav element

2008-09-30 Thread yellowboy
nothing like that. > > Perhaps that is the problem, the code you need simply isn't there? > > -Mike > >> From: yellowboy >> >> I want my h2 element to be assigned class 'active' when >> selected, I have tried numerous methods but to no

[jQuery] Assign 'active' to nav element

2008-09-30 Thread yellowboy
I want my h2 element to be assigned class 'active' when selected, I have tried numerous methods but to no avail, some guidance would be appreciated! function initMenus() { $('div.menu div.gallery').hide(); $.each($('.menu'), function(){ $('#' + this.id + '.expandf

[jQuery] add/removeClass problem

2008-09-17 Thread yellowboy
Problem: I have two divs, each containing tab navigation. When I click tab navigation items they receive class 'selected' while the previously clicked tab anchors retain 'selected' class as well. My intention is that with click of tab, other tabs drop the selected class. jquery: $(function (

[jQuery] Re: add/removeClass problem

2008-09-17 Thread yellowboy
yellowboy wrote: > > Problem: > I have two divs, each containing tab navigation. When I click tab > navigation items they receive class 'selected' while the previously > clicked tab anchors retain 'selected' class as well. > > My intention is th