Angela_Santos Posted June 7, 2013 at 09:04 AM Report #511476 Posted June 7, 2013 at 09:04 AM function validacampos() { if (document.getElementById('nomecliente').value==""){ alert("Nome não preenchido"); } if (document.getElementById('passcliente').value==""){ alert("Password não preenchida"); } if (document.getElementById('passcliente2').value==""){ alert("Não foi reintruduzida a password"); } if (document.getElementById('passcliente').value!=document.getElementById('passcliente2').value){ alert("As passwords não correspondem"); }else { if (document.getElementById('passcliente').value.length<8){ alert("A password tem de ter 8 ou mais caracteres"); } } if (document.getElementById('datanascimento2').value==""){ alert("Data de Nascimento não preenchida"); } if (document.getElementById('genero4').selectedIndex<=0){ alert("Nenhum genero seleccionado"); } } tudo o que esta dentro do alert queria que aparece-se dentro de div´s
legd1991 Posted June 7, 2013 at 09:40 AM Report #511480 Posted June 7, 2013 at 09:40 AM Se usas jQuery $('.div').empty().append('texto'); senão podes fazer assim var div = document.getElementById('div1'); div.innerHTML = "texto";
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now