I am using a vanilla "select" dropdown so the user can select one of the options. I need to know what option has been selected so I can update another column for example : if the user selected "Very good", the "Score" column will update to 5/5.
I have tried giving ids and changing the "value" attribute of the different options, but it does not solve the problem that i do not know which one is selected.
Here is the dropdown I am using
<div class="dropdown">
<select>
<option value="very bad">very bad</option>
<option value="bad">bad</option>
<option value="normal">normal</option>
<option value="good">good</option>
<option value="very good">very good</option>
</select>
</div>
I expect the HTML element "option" to change if it is selected but even when inspecting, I cannot see a difference. Note that the "value" attribute is always equal to the inner Text if that can help. I believe I am not using Jquery.