using Jquery to automatically submit form

后端 未结 5 1977
粉色の甜心
粉色の甜心 2021-02-20 09:41

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

$(function(){

$(\"input[name=name]\").val(\"somename\");
$(\"input[name=email]\").val         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-20 10:33

    I had to remove my Submit button to get $('#myForm').submit() to work. Not sure why.

提交回复
热议问题