how to display form value on submit js code example
Example 1: javascript prevent form submit
<form name="foo" onsubmit="return false">
Example 2: javascript submit form
document.getElementById("myForm").submit();
<form name="foo" onsubmit="return false">
document.getElementById("myForm").submit();