Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

175
Visualizações
sum data using checkbox

below in my Vue JS code, i wanted to sum input data if it's checked in checkbox only, for ex (sum input entered by user instTwo + instThr if they're checked only) and if it's not checked it shouldn't be sum

is there a way in Vue JS to sum data below if it's checked only ?

data() {
        return {
           checkPayment: true,
            checkPayment2: true,
            checkPayment3: true,
            checkPayment4: true,
   
   }},
<p> amount No.1 </p>
  <div class="inst-input justify-content-center mt-3">

 <input v-model="instTwo" class="paid-input"  required />

<b-form-checkbox id="checkboxs-2" v-model="checkPayment" name="checkbox-2" unchecked-value="false">
  
</b-form-checkbox>
</div>

<p> amount No.2 </p>
 <div class="inst-input justify-content-center mt-3">
 <input v-model="instThr" class="paid-input"  required />

 <b-form-checkbox id="checkbox" v-model="checkPayment2" name="checkbox-1" unchecked-value="false">
</b-form-checkbox>
</div>

<p> amount No.3</p>
 <div class="inst-input justify-content-center mt-3">
 <input v-model="instFour" class="paid-input"  required />

 <b-form-checkbox id="checkbox" v-model="checkPayment3" name="checkbox-1" unchecked-value="false">
</b-form-checkbox>
</div>

<p> amount No.4 </p>
 <div class="inst-input justify-content-center mt-3">
 <input v-model="instFive" class="paid-input"  required />

 <b-form-checkbox id="checkbox" v-model="checkPayment4" name="checkbox-1" unchecked-value="false">
</b-form-checkbox>
</div>

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda