views:

81

answers:

1

How can I select text when I mouse over a div?

+1  A: 

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);
});
Ken Redler