File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Getting selected text.. urgent" Watch "Getting selected text.. urgent" New topic

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,
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Check out this article that I found:
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.
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.
I agree. Here's the link:
subject: Getting selected text.. urgent
Similar Threads
Getting the Form elements
need help for critical path analysis in java
Automatic Installation of 100+ Open Source Projects for Java Developers
check box