Forums

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

Home Forums JavaScript Trying to add another addClass(); when element is clicked in jQuery Re: Trying to add another addClass(); when element is clicked in jQuery

#118342
TheDoc
Member

I removed a bunch of code: http://codepen.io/ggilmore/pen/GaJcK

It’s not perfect, but it should show you how you can continue.

You also had some bad practices going on with your list items by having the `` wrapping the `

  • `, it should be the other way around.