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
April 8, 2014 at 1:51 pm
#167846
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.