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

178
Visualizações
onChange event listener being called everytime window.onload function instantiated

I am trying to validate null input for dropdown selection, but the onchange event is triggered without any change of selection on dropdown list, when the window.onLoad() is instantiated.

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

0

It would be better if you can provide your snipped code for your problem. You can try to add the

target.addEventListener(type, listener);
target.addEventListener(type, listener, options);
target.addEventListener(type, listener, useCapture);

On the other hand, you might want to try:

event.preventDefault();

Also, you can learn more here: EventTarget.addEventListener() or Event.preventDefault()

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