accordion - Jquery: SlideToggle on List with divs -


i'm trying use list elements build simple menu website. thing want show '.second-row' div when arrow clicked , hide other open, ways tried wasnt working.

somebody me? example here

you need second-row corresponds arrow-1 clicked:

$('a.arrow-1 ').click(function () {     $('.second-row').slideup();     $(this).parent('.first-row').siblings('.second-row').slidedown(); }); 

here's updated fiddle

note: you'll want add logic check last clicked arrow-1, , return if it's same current clicked 1 slideup()/slidedown() doesn't occur when clicking same arrow-1 twice.


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -