Forums

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

Home Forums JavaScript How to change text color when clicking in another div Reply To: How to change text color when clicking in another div

#167875
Paulie_D
Member

As I said. my JQ skills are poor but I’ve cobbled this together:

http://cdpn.io/v/f5e44c0ad1e442a6ab859a78e6363569

It will toggle the color on and off but I haven’t figured out how to remove one color AND apply another at the same time.

Plus I’m pretty sure there must be an easier way because the HTML / ID set-up seems a little inflexible.