Skip to main content
More affirmative answer (this is not a forum - see e.g. <http://meta.stackexchange.com/a/92115>. It is a think tank (see <http://meta.stackoverflow.com/a/325681>).
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

DoesIf the selection needneeds to be visible only when the textarea has the focus?

You, you could store the selected start and end, at onblur and at the next onfocus set it again.

Does the selection need to be visible only when the textarea has the focus?

You could store the selected start and end, at onblur and at the next onfocus set it again.

If the selection needs to be visible only when the textarea has the focus, you could store the selected start and end, at onblur and at the next onfocus set it again.

Source Link
Mic
  • 25.2k
  • 9
  • 62
  • 71

Does the selection need to be visible only when the textarea has the focus?

You could store the selected start and end, at onblur and at the next onfocus set it again.