See the following updated fiddle:
https://fiddle.jshell.net/85s7b7jn/1/
The key is to create a class (I called it .plus
) for p.sidebarheading
that alters the content of its :after
pseudo element to +
. Then when anyone clicks on the parent sidebar, that class is toggled on or off, using boilerplate jQuery. (I added a jQuery dependency to your JS because you ought to be using it, as a minimum, for this sort of stuff. It makes your life much easier.)