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.