Unbind jQuery even handler

前端 未结 6 771
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-19 04:38

I try to answer this question a few minutes ago and prepared this example for myself :



        
6条回答
  •  一向
    一向 (楼主)
    2020-12-19 05:11

    You can unbind by removing the corresponding attribute:

     $('#aspnetForm').removeAttr('onsubmit');
    

提交回复
热议问题