The method selects all the text in a <textarea> element or an <input> element with a text field.



Specification Status Comment
HTML Living Standard
The definition of 'select' in that specification.
Living Standard  


Calling will not necessarily focus the input, so it is often used with HTMLElement.focus().

Browser compatibility

No compatibility data found. Please contribute data for "" (depth: 1) to the MDN compatibility data repository.

See also

Document Tags and Contributors

Contributors to this page: fscholz, sideshowbarker, jakobc, kscarfone, Krinkle
Last updated by: fscholz,