Infinite Alert with .focus ()

0

Why are you giving infinite alert when I try to focus () on an incorrectly filled onblur field?

if(ret = TstForDat(wCampo, "")!=""){
          alert('Data Incorreta! Favor preencher a data corretamente.');
          wCampo.focus(); //apos colocar isto, o alert em cima fica aparecendo sem parar.
}
    
asked by anonymous 08.06.2018 / 16:03

0 answers