The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

toggle shows all drop downs

View previous topic View next topic Go down

toggle shows all drop downs

Post by IdaTR on Fri 25 Jul - 1:55

Code:
$(function () {
$('.click-nav > ul').toggleClass('no-js js');
$('.click-nav .js ul').hide();
$('.click-nav .js').click(function(e) {
$('.click-nav .js ul').slideToggle(200);
$('.clicker').toggleClass('active');
e.stopPropagation();
});
$(document).click(function() {
if ($('.click-nav .js ul').is(':visible')) {
$('.click-nav .js ul', this).slideUp();
$('.clicker').removeClass('active');
}
});
});

I want this to only slide down ONE toggle at a time, if the toggle is clicked on, is another toggle is open it should close, but how do i but that into this code?

version: PHPBB3
website: www.Vielamort.net (the Quick links)
avatar
IdaTR
Forumember

Female Posts : 372
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

Re: toggle shows all drop downs

Post by IdaTR on Sun 27 Jul - 22:23

Bump
avatar
IdaTR
Forumember

Female Posts : 372
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

Re: toggle shows all drop downs

Post by SLGray on Sun 27 Jul - 22:25

I believe you will have to create a code for each one that you want to have a drop-down menu.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 38488
Reputation : 2589
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: toggle shows all drop downs

Post by levy on Sun 27 Jul - 22:29

Hi,
How SLG already said, you need to create for each of them different codes and also, you need to have classes different for all.
avatar
levy
Hyperactive

Male Posts : 2585
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Re: toggle shows all drop downs

Post by IdaTR on Sun 27 Jul - 22:38

isn't it possible to make just one code which can do that?
Like the Toogle for the categories?
avatar
IdaTR
Forumember

Female Posts : 372
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

Re: toggle shows all drop downs

Post by IdaTR on Tue 29 Jul - 13:50

Bump
avatar
IdaTR
Forumember

Female Posts : 372
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

Re: toggle shows all drop downs

Post by IdaTR on Wed 6 Aug - 23:47

bump
avatar
IdaTR
Forumember

Female Posts : 372
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

Re: toggle shows all drop downs

Post by APE on Thu 7 Aug - 1:06

As already said No this will have to have a code for each one.
and to do that will tale a lot of codes and may also slow your site down lots



avatar
APE
Manager
Manager

Male Posts : 9882
Reputation : 915
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Re: toggle shows all drop downs

Post by IdaTR on Wed 13 Aug - 19:43

I see... thanks!
avatar
IdaTR
Forumember

Female Posts : 372
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum