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

前端 未结 8 2045
既然无缘
既然无缘 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:40

    You need to add OnclientClick to linkbutton

    OnClientClick="if(!$('#form1').valid()) return false;"

    0 讨论(0)
  • 2020-12-01 03:46
     $(document).ready(function () {
    
              $(this).live("submit", function () {
    
                    console.log("submitted");
                 }
    }
    
    0 讨论(0)
提交回复
热议问题