capture click event of submit button jquery

后端 未结 6 1815

I am trying to get the click event of a submit button on my form...



        
6条回答
  •  醉酒成梦
    2021-02-06 00:58

    try this

    $('#submitDemo').live("click",function() {
      // your stuff
    });
    

    As @px5x2 pointed that live is deprecate so instead of live use ON

    $('#submitDemo').on("click",function() {
      // your stuff
    }); 
    

提交回复
热议问题