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

166
Visualizações
how to check that the radio button

I have to find that the radio button is checked or not if its clicked and checked then count will increase of its . And if count will increase then it will increase only one time. it will not increase on multiple click on same radio button in sveltekit.

enter image description here

Kindly suggest the count increment method on radio button

it will increase count when click and not increment count when multiple click on same radio button

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I think the knowledge you are missing is likely how to determine if the radio is checked? If so, the top answer to this provides a good explanation: How can I check whether a radio button is selected with JavaScript?

Something like:

var counter = 0;
if(document.getElementById('id').checked) {
  counter++;
}else{
  counter--;
}
about 4 years ago · Juan Pablo Isaza Relatório
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