0

Hello everyone !!

I need some help with jquery toggle :D . So , I have 2 left bars (one for login , one for register ) but they can be toggled on simultaneos and that is not good ( 1- don't make sense 2- don't look good ) . I was searching for a solution but can't find one , probably didn't search with the good words . Can someone give me a solution ?

4
Contributors
4
Replies
18
Views
4 Years
Discussion Span
Last Post by designershiv
0

I need some help with jquery toggle :D . So , I have 2 left bars (one for login , one for register ) but they can be toggled on simultaneos and that is not good ( 1- don't make sense 2- don't look good ) . I was searching for a solution but can't find one , probably didn't search with the good words . Can someone give me a solution ?

@MWEB

Can you least post some code and explaining why

1- don't make sense

2- don't look good?

Does that make sense to you when someone just post this to you:

I need some help with jquery toggle :D . So , I have 2 left bars (one for login , one for register ) but they can be toggled on simultaneos and that is not good ( 1- don't make sense 2- don't look good ) . I was searching for a solution but can't find one , probably didn't search with the good words . Can someone give me a solution ?

Can you at least give me a explantion why you post what you post?

0

As mentioned, either provide the relevant code (please don't post hundreds of line of non revalent code), a link to the site, or a link to your code on jsfiddle.

0
$(document).ready(function(){
    $('.meniu-ico').click(function(){
        $('#sub-meniu-contulmeu').toggle( "slide" , 500);
    }); // sfarsit click user manage
    $('.inregistrare-ico').click(function(){
        $('#forma-inregistrare').toggle( "slide" , 500);
    }); // sfarsit click register
    $('.autentificare-ico').click(function(){
        $('#forma-autentificare').toggle( "slide" , 500);
    }); // sfarsit click login
}); // sfarsit jquery



<nav id='contulmeu'>
  <ul>
    <li><span class='meniu-ico'><a>Contul meu</a></span></li>
    <li><span class='inregistrare-ico'><a>Inregistrare</a></span></li>
    <li><span class='autentificare-ico'><a>Autentificare</a></span></li>
  </ul>
</nav>

Code added . .

@LastMitch , I was thinking I was so clear , I have toggles on my webpage and they can be opened simultaneously and this is not I want , everyone knows what is a jquery toggle and how it works .. I was thinking the code is unnecesary because i expect that is so simple , like : You should add to your toggle the option close-when-other-open (just an example)

Edited by MWEB

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.