How to get select option custom data attribute value? #10743
Unanswered
alphanumericIsNotAvailable
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just want to console.log the data-code from the selected option in the dropdown. Currently, I have set the select option value to 'option2', so I am expecting to see '456' in the console.
This is my code
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions