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

前端 未结 8 2070
既然无缘
既然无缘 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;"

提交回复
热议问题