0

How can I call .toggle() on elements that user has highlighted?

For example:

enter image description here

t0mppa
  • 3,983
  • 5
  • 37
  • 48
Orlo
  • 828
  • 2
  • 11
  • 28

1 Answers1

-1

Try to use getSelection() for get the itens selected.

Daniel Melo
  • 548
  • 5
  • 12
  • Select some text in your browser and run this function on the console, you will see that the elements appear you selected. Why would you evaluate me negatively? Or at least tried to run the search function? – Daniel Melo Jan 27 '14 at 14:22