开发者

Selecting text in div on mouseover

How can I select text when I mouse over a div?开发者_运维问答


If you mean selecting the text as if you dragged over it, read this question. Whichever approach you try, to make it happen on mouseover, use .mouseenter():

$('#mydiv').mouseenter( function(){
  my_superduper_selection_function(this);
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜