@garibaldiiSubmitted over 1 year ago
Matheus Garibaldi
@garibaldiiAll comments
- @garibaldiiPosted over 1 year ago
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?
0 - @zurnadurummSubmitted over 1 year ago
I have a question about empty forms. I don't know how to make an error state if a form is blank. Thanks.
@garibaldiiPosted over 1 year agohi, 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); }
1