submit form on click event using jquery

前端 未结 5 607
悲&欢浪女
悲&欢浪女 2021-01-01 21:28

So can someone please tell why neither of these options will actually submit the form? I am trying to do something more complicated but I have boiled it down to this to try

5条回答
  •  滥情空心
    2021-01-01 21:50

    Using jQuery button click

    $('#button_id').on('click',function(){
         $('#form_id').submit();
     });
    

提交回复
热议问题