Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Can we display the values we input in the HTML form when clicked on submit..?
Want to display the first name and last name i entered in form after clicking on submit.
3 Respostas
+ 4
<form onsubmit=āreturn submitted()ā>
function submitted() {
//Do what ever you want with the input values
return false;
}
Thatās also the way how you validate forms in javascript.
0
prevent the form submitting by returning false on the event handler.
0
Thank you. š