submit form on click event using jquery

前端 未结 5 594
悲&欢浪女
悲&欢浪女 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:34

    Do you need to post the the form to an URL or do you only need to detect the submit-event? Because you can detect the submit-event by adding onsubmit="javascript:alert('I do also submit');"

    ...

    Not sure that this is what you are looking for though.

提交回复
热议问题