PERNAMBUCO_FJV Posted August 2, 2004 Report Share Posted August 2, 2004 gostaria que quando uma pessoa não preenchesse algo no formulario,setasse o focu e mudasse a classe!!ex: o fundo do input ficar vermelho Quote Link to comment Share on other sites More sharing options...
0 Fabi SP Posted August 2, 2004 Report Share Posted August 2, 2004 document.nomeDoForm.nomeDoElemento.className ="nomeDaClasse"; Ou no seu caso, fazendo na mão: document.nomeDoForm.nomeDoElemento.style.backgroundColor = "codigoDaCor"; Quote Link to comment Share on other sites More sharing options...
0 PERNAMBUCO_FJV Posted August 2, 2004 Author Report Share Posted August 2, 2004 document.nomeDoForm.nomeDoElemento.className ="nomeDaClasse"; Ou no seu caso, fazendo na mão: document.nomeDoForm.nomeDoElemento.style.backgroundColor = "codigoDaCor"; valeu Fabibom dia para você e fica com Deus!! Quote Link to comment Share on other sites More sharing options...
0 Illidan Posted August 2, 2004 Report Share Posted August 2, 2004 *** EDITANDO ***Nossa, como sou lerdo pra postar... A Fabi já respondeu. Quote Link to comment Share on other sites More sharing options...
Question
PERNAMBUCO_FJV
gostaria que quando uma pessoa não preenchesse algo no formulario,setasse o focu e mudasse a classe!!
ex: o fundo do input ficar vermelho
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.