# Detecting with mouse-click highlighted text in textarea

**URL:** <https://www.ruby-forum.com/t/detecting-with-mouse-click-highlighted-text-in-textarea/150112>\
**Category:** Ruby\
**Created:** [October 3, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/detecting-with-mouse-click-highlighted-text-in-textarea/150112 "2008-10-03T22:03:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![learner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@learner](https://www.ruby-forum.com/u/learner)\
**Post date:** [October 3, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/detecting-with-mouse-click-highlighted-text-in-textarea/150112/1 "2008-10-03T22:03:49Z")

</div>

Hi,

Maybe I have more chance with this question.

How can I detect with mouse-click highlighted text and store it as a  
string in a file or database. Is this possible with ruby?

Thank you in advance

Bou
