Set element to unclickable and then to clickable

前端 未结 6 848
花落未央
花落未央 2021-02-04 04:26

I want to have a div element set to not be clickable and then set it to clickable after another element is clicked.

So, when .case is clicked:

$(\'.case\         


        
6条回答
  •  情话喂你
    2021-02-04 05:03

    Non clickable:

    $("#ElementName").css("pointer-events","none");
    

    Clickable:

    $("#ElementName").css("pointer-events","auto");
    

提交回复
热议问题