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 document.getElementById('formId').submit();
document.getElementById('formId').submit();