jQuery/HTML - Disable OnClick

前端 未结 7 999
面向向阳花
面向向阳花 2020-12-20 00:29

as the title says I\'m trying to disable OnClick for specific

相关标签:
7条回答
  • 2020-12-20 01:02

    You can unbind click event into click event:

     $("#test").click(function(){
            $( "#test" ).unbind( "click");
            alert('Jquery/Javascript Event');
        });
    

    Try JsFiddle

    0 讨论(0)
提交回复
热议问题