I have a doubt where, i want get the value from radio button and pass to method function. But i am not able to get it
Here os the code for that
HTML:
<label class="d-block">Are you above 21</label> <div class="demo-inline-spacing" > <b-form-radio :v-model="tutorial.age" :aria-describedby="ariaDescribedby" name="dangerous_goods" value="true" >Yes</b-form-radio > <b-form-radio :v-model="tutorial.age" :aria-describedby="ariaDescribedby" name="dangerous_goods" value="false" >No</b-form-radio > </div>
SCRIPT:
data() { return { age: false, } }, methods: { var data = { age: this.tutorial.age } }
Please advise
https://stackoverflow.com/questions/66863872/get-the-b-form-input-value-and-send-to-method-in-vuejs March 30, 2021 at 10:07AM
没有评论:
发表评论