inputElementselectionStart
inputElementselectionStart is a read-only property of HTML input elements that returns the index of the beginning of the currently selected text within the input element's value. If no text is selected, it returns the current cursor position. This property is part of the selection API and is available for elements like <input type="text">, <input type="password">, <input type="search">, <input type="tel">, <input type="url">, and <textarea>.
The value returned by inputElementselectionStart is an integer representing the zero-based index of the character where
This property is useful for JavaScript developers who need to manipulate text within input fields, such as