Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

target data option select vue js

methods: {
    handleChange(e) {
        if(e.target.options.selectedIndex > -1) {
            console.log(e.target.options[e.target.options.selectedIndex].dataset.foo)
        }
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #target #data #option #select #vue #js
ADD COMMENT
Topic
Name
6+9 =