File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes onClick() to clear text field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "onClick() to clear text field" Watch "onClick() to clear text field" New topic
Author

onClick() to clear text field

Kalichar Rangantittu
Ranch Hand

Joined: Jan 15, 2002
Posts: 240
I have a text field with a default value. I would like to be able to clear out the result of the text field when using onClick() depending on whether the value of the default or not. If the value were the default, I would like it to be cleared. How can I accomplish this? Thanks in advance.


Never be satisfied with anything less than the best and you will surely pass the test...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onClick() to clear text field
 
Similar Threads
please help me
Form value is not clearing on HTML Reset
Form value is not clearing on HTML Reset
Change value in form onClick
update only 5th incrementt value into databse