jQuery/HTML - Disable OnClick

前端 未结 7 1002
面向向阳花
面向向阳花 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

提交回复
热议问题