How to capture submit event using jQuery in an ASP.NET application?

前端 未结 8 2074
既然无缘
既然无缘 2020-12-01 03:11

I\'m trying to handle the submit event of a form element using jQuery.

    $(\"form\").bind(\"submit\", function() {
        alert         


        
8条回答
  •  醉话见心
    2020-12-01 03:31

    This works for capturing the submit:

    $("form input[type=submit]").live("click", function(ev) {
        ev.preventDefault();
        console.log("Form submittion triggered");
      });
    

提交回复
热议问题