# How to Show selected text in a textArea component

**URL:** <https://forum.kirupa.com/t/how-to-show-selected-text-in-a-textarea-component/82376>\
**Category:** flash\
**Created:** [March 9, 2005, 10:00pm UTC](https://forum.kirupa.com/t/how-to-show-selected-text-in-a-textarea-component/82376 "2005-03-09T22:00:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CayoHueso](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@CayoHueso](https://forum.kirupa.com/u/CayoHueso)\
**Post date:** [March 9, 2005, 10:00pm UTC](https://forum.kirupa.com/t/how-to-show-selected-text-in-a-textarea-component/82376/1 "2005-03-09T22:00:13Z")

</div>

Hi everybody,

I have a textArea instance that displays the content of an Array.

The text elements in this textArea use a \<A HREF\> to call a function that displays text in another textArea instance.

I would like to have highlighted the word in the first textArea when I click on it, so it marks which word was selected.

Does anyone know how could this be done?

Thank you very much for your help.

Peace,  
Cayo Hueso  
:h:
