How to submit a specific form if multiple forms are present in one page using jquery

后端 未结 6 2071
-上瘾入骨i
-上瘾入骨i 2021-02-14 09:49

I have two forms.

6条回答
  •  后悔当初
    2021-02-14 10:02

    you would say

     $("#btn1").click(function(){  
      $("#frm1").submit();
    }
    

    and

     $("#btn2").click(function(){  
      $("#frm1").submit();
    }
    

提交回复
热议问题