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.

1st Aug 2018, 12:03 PM
Sangram Mane
Sangram Mane - avatar
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.
1st Aug 2018, 2:15 PM
Toni Isotalo
Toni Isotalo - avatar
0
prevent the form submitting by returning false on the event handler.
1st Aug 2018, 12:10 PM
Toni Isotalo
Toni Isotalo - avatar
0
Thank you. 🙂
1st Aug 2018, 4:56 PM
Sangram Mane
Sangram Mane - avatar