toggle shows all drop downs
4 posters
Page 1 of 1
toggle shows all drop downs
- 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)
Re: toggle shows all drop downs
I believe you will have to create a code for each one that you want to have a drop-down menu.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: toggle shows all drop downs
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.
How SLG already said, you need to create for each of them different codes and also, you need to have classes different for all.
Re: toggle shows all drop downs
isn't it possible to make just one code which can do that?
Like the Toogle for the categories?
Like the Toogle for the categories?
Re: toggle shows all drop downs
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
and to do that will tale a lot of codes and may also slow your site down lots
Similar topics
» Toggle issues
» Strange messages and slow downs
» Category Toggle + & -
» Widget toggle
» Category Toggle
» Strange messages and slow downs
» Category Toggle + & -
» Widget toggle
» Category Toggle
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum