HTMLTextAreaElement: selectionEnd property - Web APIs | MDN

Value

A non-negative number.

Examples

js

const textarea = document.getElementById("text-box");
const end = textarea.selectionEnd;

Specifications

Specification
HTML
# dom-textarea/input-selectionend

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.