0

For example:

<div class="example">
    <span class="selectable">foo</span>
    <span class="unselectable">bar</span>
    <span class="selectable">hello</span>
    <span class="selectable">world</span>
</div>

When performing mouse selection from 'foo' to 'world' (a sentence or paragraph), I want the selected text to be 'foo hello world' with 'bar' skipped. How this may be accomplished?

The css trick user-select: none doesn't seem to work for this purpose.

Zilong Li
  • 889
  • 10
  • 23

0 Answers0