Set a form's action attribute when submitting?

后端 未结 7 1239
情话喂你
情话喂你 2020-12-03 00:45

How do I change a form\'s action attribute right after clicking the submit button?

7条回答
  •  独厮守ぢ
    2020-12-03 01:44

    There's a simple way to do this if you only need to support modern browsers: on your submit button, add a formaction="/alternate/submit/url" attribute like so:

    [fields]

    It also works on

提交回复
热议问题