jquery - disable click

后端 未结 7 1246
忘掉有多难
忘掉有多难 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:06

    I used .prop('disabled', true) and it worked like a charm, no redefining, simple.

    Had to time it out by 125ms as it interfered with the prop from Bootstrap Dropdown.

提交回复
热议问题