capture click event of submit button jquery

后端 未结 6 1810

I am trying to get the click event of a submit button on my form...



        
6条回答
  •  悲哀的现实
    2021-02-06 00:53

    For form you can also bind submit button click on form.

    $("#form_selector").submit(function{
    // Do your stuff
    })
    

    where 'form_selector' is id of the form of which submit button is clicked.

提交回复
热议问题