Value of submit button clicked

后端 未结 6 2136
眼角桃花
眼角桃花 2021-02-07 08:58

This should be really straight forward.

I\'m checking if a form is being submitted using jquery. The form has multiple submit buttons with various values:



        
6条回答
  •  青春惊慌失措
    2021-02-07 09:43

    I recommend the use of the Firebug Add On, you get a lot of responses to your questions just looking to the data in the console. I realize that in your case you can access the submit value this way:

    alert($(this).context.submit.value);
    

提交回复
热议问题