Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onClick() to clear text field

 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic