Fire onmouseover event when element is disabled

后端 未结 6 988
陌清茗
陌清茗 2020-12-09 18:24

I have some controls that I need to disable when users don\'t have edit priveleges, but are sometimes not wide enough to show the entire text of the selected option element.

6条回答
  •  春和景丽
    2020-12-09 18:57

    Disabled elements do not fire events, e.g. users cannot hover or click them to trigger a popover (or tooltip). You can however wrap the disabled element with a DIV and listen to the event fired on that element instead.

提交回复
热议问题