I have 4 buttons in HTML:
<button id="option_one" class="question_option">Option 1</button>
<button id="option_two" class="question_option">Option 2</button>
<button id="option_three" class="question_option">Option 3</button>
<button id="option_four" class="question_option">Option 4</button>
In JS I would like to add an event listener to the question_option
class and manipulate only the button that was clicked, instead of adding an event listener for every button. On click the button will change style and change a variable's value.