HTML Form Button value is not posted in Safari and Chrome

后端 未结 10 1839
旧巷少年郎
旧巷少年郎 2021-01-08 00:15

I am using jQuery to submit a form when a button is clicked. I would then like to test the value of the button, however, this doesn\'t get submitted in Safari and Chrome. Wh

10条回答
  •  孤街浪徒
    2021-01-08 01:15

    Try like this to send a button as submit by catching a hidden input.

    PHP:

    
    

    and html:

提交回复
热议问题