0

I am trying to extract which option has been selected from the code below in Apps Script. The idea is to create a function that assigns a value to a variable when you pick a different selection. This is easy with buttons, as you only need a target.matches to detect the click, but I don't know how to do it with the select menu.

<select class="form-select" id="selecccion">
 <option value="One">One</option>
 <option value="Two">Two</option>
</select>

Thanks.

MAA
  • 45
  • 5

1 Answers1

0

document.getElementById('seleccion").value

Cooper
  • 59,616
  • 6
  • 23
  • 54