Home › Forums › JavaScript › Super simple jQuery accordion, help needed › Reply To: Super simple jQuery accordion, help needed
July 28, 2014 at 12:49 am
#176640
Chromawoods
Participant
@Paulie_D it does not quite work as expected? If you expand one item and then click another one, that item does not expand. I made a fork of your fork and made a few modifications:
http://codepen.io/chromawoods/pen/vEscu
When we click an item, we must reference it with jQuery’s $(this)
. Also cached some selectors and utilized chaining for performance.