<form action="/?wpmlmethod=offsite&list=2&wpmlformid=" method="post">
...
</form>
I tried:
<script type="text/javascript">document.forms[0].submit();</script>
But it didn’t work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should submit it on some
clickevent, etc, for example:Update:
As you said form is already filled, you want to submit it straight away, you can try this instead:
Note that
forms[0]represents the first form on your page, if there are more than one forms on your page, you will need to specify the correct index for it egforms[1],forms[2], etc