Submit form using tag

前端 未结 11 2069
滥情空心
滥情空心 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:42

    If jquery is allowed then you can use following code to implement it in the easiest way as :

    Login
    

    or

    Login
    

    You can use following line in your head tag () to import jquery into your code

    
    

提交回复
热议问题