Making an element unselectable using jQuery

前端 未结 4 865
滥情空心
滥情空心 2021-02-10 09:48

What\'s the best way to make an element unselectable using jQuery?

I know you can use onselectstart=\"return false;\" ondragstart=\"return false;\" in the H

4条回答
  •  借酒劲吻你
    2021-02-10 10:17

    If you use JqueryUI you can set class="ui-state-default" to the div that you dont want to be selected.

提交回复
热议问题