Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
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 Antworten
+ 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. 🙂