Can any one explain me how to submit form value using JavaScript?
ksknagaprasad
0
Newbie Poster
Recommended Answers
Jump to PostUse the "submit" method of the Form object. You should always give your form an ID:
<form id="myForm" action="myServerSideCode.php" method="post"></form>
Then, you can reference and submit the form with a script that looks like:
document.getElementById("myForm").submit();
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.