Submit form using tag

前端 未结 11 2092
滥情空心
滥情空心 2020-12-12 23:55

I am trying to submit a form through onclick event on tag. I have tried triggering document.myform.submit(), this.form.submit(), parentNode.submit() etc. but none of this i

11条回答
  •  自闭症患者
    2020-12-13 00:29

    Is there any reason for not using a submit button and then styling it with css to match your other a tags?

    I think this would reduce your dependency on having javascript enabled and still get the desired result.

提交回复
热议问题