showing results for - "target data option select vue js"
Myrna
07 Apr 2020
1methods:{
2    onChange: function(e){
3        var id = e.target.value;
4        var name = e.target.options[e.target.options.selectedIndex].text;
5        console.log('id ',id );
6        console.log('name ',name );
7    },
8
9
10 <select name="customerName" id="" v-on:change="onChangeSite($event)">
11         <option value="1">Jan</option>
12         <option value="2">Doe</option>
13         <option value="3">Khan</option>
14   </select>
Anissa
21 Jan 2020
1methods: {
2    handleChange(e) {
3        if(e.target.options.selectedIndex > -1) {
4            console.log(e.target.options[e.target.options.selectedIndex].dataset.foo)
5        }
6    }
7}
queries leading to this page
vue get dropdown textvue js show when select option selectedvuejs select optionkeep select box selected in vue jsget data selection option vuejsget value select option vuejsvuejs get the selected option namehow to keep selected value in vue jstake parameters from value in options vuejsvue js get selected textget value of current vue selected optionvue select selectedvue js data select componentget selected value in vue jstarget data option select vue jsget select option event jquery vuejsvuejs on select get valuehow to save value from dropdown in vuejsdisplay selected value in select in vuevue js dipaly option selectedvue selectselect in data vuevue js get selected optionvue js get dropdown selected valueget select value vueget select value vue jshow to get an option chosen in select tag from vuejsget data from 24options data vuevue get value of selected optionvue select value post to databasevue select text outside boxget option data attribute vue jsget dropdown value in other vue compoenntvuejs get selected optionhow to save a dropdown option value after click vue jsget option to vue jssave select vuejsvue select option data attributevue js get select value infind select option by value vuesjsvue option value datavue js set data attribute in select optionsave dropdown value in data vue jshow to get a selected id in vuejshow to get a selected id in vuejs selectpost select option value to table field vue jsconvert select value to text vuehow to check selected in option in vue jsvue js select optionsget the text of an option vuejsvue select option to vue dataonchange pass selected value with other data vue jshow to collect selected option in vue jsvue select box get selected value detailshow to find selected option name by using id in vuejsvue select show valueget selected option of vue selecthow to selected select box in response using vue jsvue select get selected valueget specific option of vue select how get value seelct in vue jsshow selected option in dropdown vuevue js get selected option valuevuejs get value from optionhow to save the text and value of a select in vue jsget selected value vuejsvujs get value select optionget select option value in vue jsjquery get value of select 22vue 22on selected option get related value in vuejsvue i have options value i want textbind input text to selected optionhow to send id instead of option value in vueshow paragraph on slect vuevue select get option keyoptionsstring 3a vuejsvue show when b select on certain value 5cget data from 24option vuevue js v selectvue js default select optionsend selected item of a select vuejsshow other field on select option show html vueselected the option whose value is something in vue 3aselected 3d 22index 3d 3d form category id 22 3e 7b 7b cat 7d 7d vue modalvue select get selected valuegetselected vue jsvue js select get inner text 3fcheck value dropdown vue jsselect 28 29 can 27t access in vuejsget option value of select vuejsselect option in vue js when updatechange output according to the dropdown selected in vue jsdisplay select in vue jshow to get selected value id in vuejsselect option data attr vuejson text select vuevue get selected optionvue js 3 get value of selected optionhow to get selected value in vuejsvue get value of selected and other selectedvuejs list in select show selected valueprint a select options in vuevue select value send to database fieldget option value vuejsvue get selected option value get selected option value in vue jsvue get value from selectpost select option value to table field vue sselect option when choose one vuetarget data option select vue js