Set a form's action attribute when submitting?

后端 未结 7 1259
情话喂你
情话喂你 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:26

    
    

    Or you can modify it from outside the form, with javascript the normal way:

     document.getElementById('form_id').action = 'somethingelse';
    

提交回复
热议问题