HTMLTextAreaElement: select() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("HTML DOM")}}
The **select()** method of the {{domxref("HTMLTextAreaElement")}} interface selects all the text in a {{HTMLElement("textarea")}} element.
For general information about this method, see {{domxref("HTMLInputElement.select()")}}.
Syntax
js-nolint
select()Parameters
None.
Return value
None ({{jsxref("undefined")}}).
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("HTMLTextAreaElement")}}
- {{domxref("HTMLTextAreaElement.setSelectionRange()")}}