wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Getting selected text.. urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Getting selected text.. urgent" Watch "Getting selected text.. urgent" New topic
Author

Getting selected text.. urgent

Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
Hi All,
Can we get selected text in a textarea input box? For ex: if user selects "li" in "California", can we get the selected text "li"?
Thaks in advance,
Santhosh.
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Check out this article that I found:
http://www.webreference.com/js/column12/events.html
It doesn't appear that you can get the text that is selected, you can only tell that some text was selected and have a function react then. I thought this was possible but when I saw this article, I am guessing it is not now.
Bill
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
Bill, thanks a lot for your reply. I'll try to do with the applet.
Santhosh.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting selected text.. urgent
 
Similar Threads
Automatic Installation of 100+ Open Source Projects for Java Developers
Getting the Form elements
getselected
need help for critical path analysis in java
check box