Submit form using a button outside the <form> tag

前端 未结 13 1231
南旧
南旧 2020-11-22 09:45

Say I have:

13条回答
  •  不思量自难忘°
    2020-11-22 10:26

    if you can use jQuery you can use this

    So, the bottom line is to create a button like Submit, and put the real submit button in the form(of course hiding it), and submit form by jquery via clicking the 'Fake Submit' button. Hope it helps.

提交回复
热议问题