Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

vue select option get attribute

var app = new Vue({
  el: '#app',
  methods: {
    onChange: function() {
      var options = event.target.options
      if (options.selectedIndex > -1) {
        var name = options[options.selectedIndex].getAttribute('name');
        console.log(name)
      }
    }
  },
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: electron Uncaught ReferenceError: require is not defined at recorder.js:1 
Javascript :: nodemon package.json start 
Javascript :: js test if string 
Javascript :: find email domain javascript 
Javascript :: how to get back image and front text in react native 
Javascript :: sort array by date 
Javascript :: React Redux reducer combineReducers exemple 
Javascript :: jquery modify style attribute 
Javascript :: return index of array with function in array angular 
Javascript :: node js get input from console 
Javascript :: spacebar event listener 
Javascript :: angular string contains 
Javascript :: hide html element with javascript 
Javascript :: javascript falsy values 
Javascript :: get current date 
Javascript :: javascript format seconds into minutes and second 
Javascript :: get javascript min date 
Javascript :: javascript string pop 
Javascript :: form.select react bootstrap 
Javascript :: js find in array and remove 
Javascript :: get caret position javascript 
Javascript :: document get element by id radio button 
Javascript :: remove the items in array which are present in another javascript 
Javascript :: sequelize get only one column 
Javascript :: how create a delay for html js 
Javascript :: dayjs timezone 
Javascript :: javascript transpose array 
Javascript :: discord.js set activity 
Javascript :: get current date + 1 js 
Javascript :: nestjs return error response 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =