@garibaldii
Submitted
@garibaldii
@garibaldii
Submitted
@garibaldii
Posted
Hello everybody, How are you? In the footer of this challenge, I couldn't align the main article and aside with the three news items in the footer. Do you have any suggestions on how I can fix this?
@zurnadurumm
Submitted
I have a question about empty forms. I don't know how to make an error state if a form is blank. Thanks.
@garibaldii
Posted
hi, how are you? In this case i put an email standart for this input. User cant put nothing but a email adress or it is going to show the error mensage.
if (!validar_email(input.value)) { mensagem_erro.style.display = 'block'; input.style.borderColor = 'red'; input.style.backgroundColor = 'rgba(255, 0, 0, 0.1)'; return; }
function validar_email(email) { var regex = /\S+@\S+.\S+/; return regex.test(email); }