jquery - disable click

后端 未结 7 1193
忘掉有多难
忘掉有多难 2020-12-04 15:27

I just want to disable the ability for a user to click on an element for some condition. Here is some of the code I am working with:

     $(\'#navigation a\         


        
相关标签:
7条回答
  • 2020-12-04 16:08

    Use off() method after click event is triggered to disable element for the further click.

    $('#clickElement').off('click');
    
    0 讨论(0)
提交回复
热议问题