0
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 Answers
+ 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. đ