Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Best practice: Remove active state from dropdown menu Re: Best practice: Remove active state from dropdown menu

#105277
littleGiant
Member

Maybe not a bad idea to cache all .dropdown-buttons first and to use these as context for new .active queries within $(document).click().

http://jsfiddle.net/mGAs4/3/

Currently I do not see a better/easier solution. Thank you for your thoughts!