Submit form using tag

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

    Using Jquery you can do something like this:

    $(document).ready(function() {
      $('#btnSubmit').click(function() {
        $('#deleteFrm').submit();
      });
    
    });
    
    
    Submit

提交回复
热议问题