submit form after validation jquery

前端 未结 5 1273
迷失自我
迷失自我 2021-02-08 02:43

I have following form:

  • Name
5条回答
  •  萌比男神i
    2021-02-08 03:24

    If you want to submit the form manually, you have to bypass jQuery bound event. You can do it in either of these ways:

    $('#form_id')[0].submit();
    

    or

    $('#form_id').get(0).submit();
    

    [0] or get(0) gives you the DOM object instead of the jQuery object.

提交回复
热议问题