screen_rotation
Copied to Clipboard
<html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="app"> <h3>Vue js Radio button Get selected/checked value</h3> <div v-for='(option,index) in options'> <input type="radio" :id="index" v-model="getValue" :value="option" :checked="getValue === 'option'">{{option}} </div> <pre>Get Checked Value: {{getValue}}</pre> </div> <script type="module"> const app = new Vue({ el: "#app", data() { return { options: ['HTML', 'CSS', 'Javascript', 'Vue', 'Angular', 'React', 'Node'], getValue: '' } }, }); </script> </body> </html>