Show tooltip for disabled items

后端 未结 3 647
我寻月下人不归
我寻月下人不归 2021-01-21 22:25

I have a div with disabled items. I am using jquery ui to display tool tip. Tool tip is shown for enabled items but not for disabled div. How can I show tooltip for disabled div

3条回答
  •  没有蜡笔的小新
    2021-01-21 22:50

    You are setting pointer events to none so the hover event is not fired. Thats why title is not shown. Maybe you should find another way to "disable" the div.

    If you just want to stop click event on the div

    item is disabled

    would do.

    But normally it is useless to click on a div so maybe you would explain what are you doing on click of the div and preventing this action would be different.

提交回复
热议问题