I need to be able to know what option is being clicked on, I have used
let selection = document.getElementById("list");
but this only works when I click on the list as a whole, I have tried getting all the options but I only can see what is inside
let opt = document.getElementsByTagName("option");
I need to be able to catch the option that was clicked so I can send a message depending on the one chosen! Also, I can not use values on the option tag.
<select id="list">
<option>Select a Currency</option>
<option>UK Pounds</option>
<option>Euros</option>
<option>Yen</option>
<option>Yuan</option>
<option>Swiss Francs</option>
<option>Canadian Dollars</option>
</select>
<p id="exchangerate"></p>
then i need to target the id "exchangerate" and write there what rate according to the option selected