Submit form using a button outside the <form> tag

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

Say I have:

13条回答
  •  遥遥无期
    2020-11-22 10:05

    A solution that works great for me, is still missing here. It requires having a visually hidden or element whithin the

    , and an associated element outside of it. It would look like this:

    
         
         
    
    
    
    

    Now this link enables you to 'click' the form element by clicking the element.

提交回复
热议问题