There is a div with the id #increase-text-weight
that displays the text "INCREASE TEXT WEIGHT".
Upon clicking on it, the font weight of another div with the id #post-content
should be changed to font-weight: 500
and the text inside #increase-text-weight
should be updated to "DECREASE TEXT WEIGHT".
If the text in the div reads "DECREASE TEXT WEIGHT" and you click on it, the font weight of
#post-content
should then be set to
font-weight: 300
and the content of
#increase-text-weight
should revert back to "INCREASE TEXT WEIGHT".
Is there a way to achieve this?
UPDATE:
I attempted using getElementById
but was unsuccessful.