# Select all the text in textarea

**URL:** <https://forum.kirupa.com/t/select-all-the-text-in-textarea/175638>\
**Category:** flash\
**Created:** [January 16, 2006, 5:35pm UTC](https://forum.kirupa.com/t/select-all-the-text-in-textarea/175638 "2006-01-16T17:35:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dasqrd](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@dasqrd](https://forum.kirupa.com/u/dasqrd)\
**Post date:** [January 16, 2006, 5:35pm UTC](https://forum.kirupa.com/t/select-all-the-text-in-textarea/175638/1 "2006-01-16T17:35:43Z")

</div>

Does anyone know how to select all the text in the textarea on a single click? For example, if I click on the textarea, I would like to select all the text in it or if I click on a button, I would like to select all the text in the textarea…

Thanks in advance…  
Chris
