screen_rotation
Copied to Clipboard
<html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <h3>Vue Js uncheck radio button</h3> <div id="app"> <div v-for="item in items"> <input type="radio" :value="item" v-model="selectedItem">{{item}} </div><br> <button @click='unCheck'>Uncheck</button> </div> <script type="module"> const app = new Vue({ el: "#app", data() { return { items: ['HTML', 'CSS', 'React', 'Vue', 'Angular', 'Node', 'PHP'], selectedItem: 'CSS', } }, methods: { unCheck() { this.selectedItem = null } } }); </script> </body> </html>