Guest - Leandro - Posted January 20, 2005 Report Share Posted January 20, 2005 Fiz uma funcao que valida a hora e agora preciso fazer que o input text fique vermelho quando a hora for inválida.Como a cor do input?Tentei document.form1.input.background = "red"!!!!!!!Obrigado Quote Link to comment Share on other sites More sharing options...
0 rafaelrebelo Posted January 20, 2005 Report Share Posted January 20, 2005 Utilize assim:Tentei document.form1.input.style.background = "red"Deve funcionar... Quote Link to comment Share on other sites More sharing options...
0 Illidan Posted January 21, 2005 Report Share Posted January 21, 2005 Quase isso, pessoal...document.form1.input.style.backgroundColor = "red"Aí você associa esse código pra ser disparado no evento "onblur" da sua caixa de texto.Abraços! Quote Link to comment Share on other sites More sharing options...
Question
Guest - Leandro -
Fiz uma funcao que valida a hora e agora preciso fazer que o input text fique vermelho quando a hora for inválida.Como a cor do input?
Tentei document.form1.input.background = "red"
!!!!!!!
Obrigado
Link to comment
Share on other sites
2 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.