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.