How to submit a form automatically on page load?
How to submit a form automatically on page load?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
<form id="f1" name="f1" action="" method="post">
<input type="text" id="name" name="name" value="test" />
<input type="text" id="email" name="email" value="test@gmail.com" />
</form>
<script type="text/javascript">
jQuery(document).ready(function($) {
$("f1").submit();
});
</script>