I have always used a custom select/drop down component, so not had this issue before, but trying to use the native select I am struggling to get the data for the current selection.
When i add a select from the element panel i get a select with 2 options. when clicking the field it has drop down with the options and when selecting one it then shows in the field.
Out of the box there is no attributes set on the select, not sure if i need to set some, i added an id, but I cannot workout how i can use this element to set a variable.
Not sure what I am missing. I have given the select an id and tried to get element by id but that has not worked. I have tried adding a click event on the option to set the variable but that seems to set it to "isTrusted": true
I am sure this is crazy simple, but I am struggling to work it out ...