H
H
HelpSophie2020-01-08 02:12:57
Vue.js
HelpSophie, 2020-01-08 02:12:57

How to make one of the default checkboxes checked and disabled in Vue?

Understanding Vue.
There is such a calculator
https://jsfiddle.net/w6r1dnyq/
But I can’t figure out how to tell him that the first service is always selected and this cannot be canceled? (Included in the package by default or always comes with another service that you have already chosen)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2020-01-08
@HelpSophie

Like this, via computed with a link to v-model="product.checked"
https://jsfiddle.net/fg63dc1r/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question