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

#167846
Paulie_D
Member

Basically,a click requires javascript.

Now with JS (or a JS library like JQuery) there is usually more than one way to do anything.

You need to detect the class that’s applied to your li and apply that class name to p` in the content div.

I confess that my JQ skills are poor but that shouldn’t be hard although I’m not sure class detection would be the right method…more like data attributes.

I’ll push this over to the JS area.