Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using Jquery to automatically submit form

I am trying to submit a form by using jquery automatically after page load

$(function(){

$("input[name=name]").val("somename");
$("input[name=email]").val("[email protected]");
$('#aweberform').submit();

});

Both the name/email value can be seen to get populated on the form. But the submit event wont triggered.

Any one here that can shed any lights ?

thanks !

like image 904
Rob Chuah Avatar asked Dec 25 '09 15:12

Rob Chuah


1 Answers

Try this $('#aweberform').submit();

like image 183
atpatil11 Avatar answered Sep 22 '22 16:09

atpatil11