Skip to content
Discussion options

You must be logged in to vote

Click events don't generally work for option tags: https://stackoverflow.com/questions/29056379/onclick-event-doesnt-work-in-chrome
You can use @change on the select tag

<div x-data>
  <select @change="alert($el.value)">
    <option selected disabled></option>
    <option>option 1</option>
    <option>option 2</option>
    <option>option 3</option>
  </select>
</div>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by feelosophy13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants