I am trying to submit a form by using jquery automatically after page load
$(function(){
$(\"input[name=name]\").val(\"somename\");
$(\"input[name=email]\").val
Try this $('#aweberform').submit();
ok i found out the problem
apparently the submit input cannot have the name submit
<input type="submit" name="submit" value="click to submit!">
changed to
<input type="submit" name="someothername" value="click to submit!">
and that got the problem fixed
Try this document.getElementById('formId').submit();
Add a function in the submit. Seems to work for me.
$('#aweberform').submit(function(){return true;});
I had to remove my Submit button to get $('#myForm').submit()
to work. Not sure why.