Home › Forums › JavaScript › Best practice: Remove active state from dropdown menu › Re: Best practice: Remove active state from dropdown menu
July 2, 2012 at 12:23 pm
#105225
instantMash
Member
My understanding is that if you cache $(‘.dropdown-button.active’) as a variable, that will prevent jQuery from diving back into the DOM.