JQuery Accordion menu - Toggle Icon Triger?

Change the first function to this: $(". Acc_menu_sub").hide(); $(". Acc_menu div div .

Ico"). Click(function(){ $('. Acc_menu .

Acc_menu_item . Acc_menu_title .ico. Active').

RemoveClass('active'); if(false == $(this).parent().parent(). Children(". Acc_menu_sub").

Is(':visible')) { $('. Acc_menu . Acc_menu_sub').

SlideUp(300,'easeInQuad'); $(this). AddClass('active'); } $(this).parent().parent(). Children(".

Acc_menu_sub"). SlideToggle(300,'easeInQuad'); }) It basically remove all the active classes out there before adding the one you want to be active Tried in this jsFiddle PS: Updated.

Change the first function to this: $(". Acc_menu_sub").hide(); $(". Acc_menu div div .

Ico"). Click(function(){ $('. Acc_menu .

Acc_menu_item . Acc_menu_title .ico. Active').

RemoveClass('active'); if(false == $(this).parent().parent(). Children(". Acc_menu_sub").

Is(':visible')) { $('. Acc_menu . Acc_menu_sub').

SlideUp(300,'easeInQuad'); $(this). AddClass('active'); } $(this).parent().parent(). Children(".

Acc_menu_sub"). SlideToggle(300,'easeInQuad'); }); It basically remove all the active classes out there before adding the one you want to be active. Tried in this jsFiddle.PS: Updated.

Its working but not perfect. Try to click: 1st -> 3rd -> 1st and you will understand. – SerNeo Nov 9 at 11:22 Updated.

Basically the icon was changing at click but the others were left unseen :) – Antonio Laguna Nov 9 at 11:46 At last! Now its working...jsfiddle. Net/zbwub/14 Antonio Thank you for helping!

You gave the right idea to solve it ;) – SerNeo Nov 9 at 11:56 The example I gave is also working as yours it's. Please, select the answer as valid if you think it's a valid solution :) – Antonio Laguna Nov 9 at 12:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions