0

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

Yi Jiang
  • 49,435
  • 16
  • 136
  • 136
shanmugam
  • 1
  • 1

1 Answers1

0

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);
});
Community
  • 1
  • 1
Ken Redler
  • 23,863
  • 8
  • 57
  • 69