Hi all, I'm in this situation :
<ul id="scTopNavList"> <li><a href="#divPippo">Pippo</a></li> <li><a href="#divPluto">Pluto</a></li> </ul> when I click on Pippo I show the div #divPippo e vice-versa with Pluto with this code (I don't know if is good but it work :) ) : $("a").click(function(){ var div = ($(this).attr("href")); $(div).show("fast"); return false; }); I want this behavior: when I click on Pippo the divPippo must appear but if another div (example Pluto) is opened it must be closed. In my example I've reported 2 href (pippo and pluto), but if I want to do this with a lot of link hows can I do this? Some suggestion? Thanks. -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery (English)" group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~----------~----~----~----~------~----~------~--~---