How To Submit A Form Without Submit Button Php Jquery Javascript??

Easy way to save a form without using a submit button is javascript. Just Check and use the below code for submitting a form without button.

<html>
<head>
<script>
function submitform()
{
document.getElementById("myForm").submit();
alert("your form submitted");
}
</script>
</head>
<body>
<form method="post" action="yourdata.php" id="myForm">
<input type="text" name="n" placeholder="enter your name"/><br/>
<input type="text" name="e" placeholder="enter your email"/><br/>
<input type="text" name="m" placeholder="enter your mobile"/><br/>
<textarea name="reply" placeholder="enter your address"></textarea>
</form>
<div onclick="submitform()" style="color:blue;">Submit the form by clicking this</div>
</body>
</html>

List your article for Tech Blogs Write For Us at Developer Gang.