jQuery page redirect after submit the form

后端 未结 5 1198
没有蜡笔的小新
没有蜡笔的小新 2021-01-13 22:36

I have a form like this

5条回答
  •  长情又很酷
    2021-01-13 23:07

    If you don't use ajax, the form will be submitted, and the browser redirected to the action url of the form. The only way to do a redirection after the submit, is to do it in the handler of the action form. You could however add a parameter with the URL you want to redirect to.

    The only advantage of that solution over a solution involving ajax is that no javascript is required. It would work whether javascrit is enabled or not.

提交回复
热议问题