P. Ricardo• 2,370
@pRicard0
Posted
- Ao invés de adicionar onclick para cada input, você pode adicionar um eventlistener para quando os dados do formulario forem enviados ao apertar no botão.
- Seu site tem um pequeno bug. O que acontece quando eu clico pra enviar sem ter selecionado nada? Dá uma bugada.
- Se quiser entender melhor o que dava para ser feito, cheque meu projeto. É difícil te explicar direito quando se trata de JavaScript já que cada um usa uma lógica diferente então acho que lendo meu código vai entender mais fácil.
Dicas em HTML
- Usa main tag ao invés de section para envelopar todo o conteúdo.
Dicas CSS
- Use rem para font-size ao invés de pixel.
Marked as helpful
0
Anderson Fernandez• 350
@anderson-fndz
Posted
Vlw mano, ajudou demais cara, fiquei aqui procurando como fazer isso de pegar os valores e agora consegui, e até usei o seu projeto como exemplo para conseguir terminar e arrumar os bugs, vlw mano @pRicard0
1