hi all,

Im trying to produce a menu where if the list item has a class of selected
it will remain "open"...

the menu im using is....

        
        <ul class='menu'>
                <li class='selected'> /store/Apparel/arsenal-football Arsenal 
                        <ul>
                                <li class='selected'> 
/store/Books/arsenal-football Books </li>
                                <li class='selected'> 
/store/Apparel/arsenal-football Clothing &amp;
Apparel </li>
                                <li class='selected'> 
/store/DVD/arsenal-football DVD's </li>
                                <li class='selected'> 
/store/Music/arsenal-football Music &amp; Cds
</li>
                                <li class='selected'> 
/store/VHS/arsenal-football Video </li>
                        </ul>
                </li>
<li>
<ul>
<li> 
        $(document).ready(function(){
                $("ul.menu li ul:not(ul.menu li.selected ul)").hide();          
                $("ul.menu li a").click(function(){
                        $("ul.menu li ul").slideUp("slow");
                        $(this).next().slideDown("slow");
                        return false;
                });
        });
        </script>

which mostly works, but not quite,

I cant get it to keep the selected non hidden, and also i cant get it to
allow me to click the nested li's either.

Any advice?

thanks
  

-- 
View this message in context: 
http://www.nabble.com/accordian%2C-with-selected-item%2C-mostly-done....-tp21142259s27240p21142259.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to