How to get option value of select tag

Hi everybody. Please how can I solve this issue.
I don’t undertand why I get only the first option value…

Code here

your javascript is executing when the page load, if you want to take the value when the button is pressed you need to move the assignment of those values inside a function that execute when the button is pressed

1 Like

Thank you a lot!!!
That solves the issue.