Get to know MDN better
Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since julio de 2015.
El método HTMLInputElement.select() selecciona todo el texto en un elemento <textarea> o un elemento<input> con un campo de texto.
| HTML # dom-textarea/input-select |
Llamando a element.select() no necesariamente se enfoca el campo, por lo que suele utilizarse junto con HTMLElement.focus().
This page was last modified on 26 nov 2022 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.