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);
});
精彩评论