jeudi 21 janvier 2021

How to get a different output if clicking on a checkbox?

I'm working on checkboxes in vuetify. My issue is how to get a different output at the second . If I click on the checkbox "Social Media" I'll get "On our social media" at the first and I want a different string (on our social media page for instance) at the second one.

<v-checkbox
      v-model="selected"
      label="Social Media"
      value="On our social media"
    ></v-checkbox>
    <v-checkbox
      v-model="selected"
      label="Website"
      value="on our website"
    ></v-checkbox> ```

<script>
selected: [],
</script> 
   


Output:


......




Aucun commentaire:

Enregistrer un commentaire