Keyword

Sample Text in Text Field

  • Daniel MacIntosh
  • Daniel MacIntosh's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #111748 by Daniel MacIntosh
Sample Text in Text Field was created by Daniel MacIntosh
Hello!

I am attempting to add additional fields to the k2-story forum and had a question regarding the use of sample text. I notice that each field can have a default value but I am looking to utilize a 'sample' value where when the user clicks on the text box to enter text, the sample text disappears. This seems pretty standard these days and is usually displayed in a faded format.

If you could point me in the right direction to accomplish this, I would greatly appreciate it. Thank you!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #111749 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Sample Text in Text Field
Hello Daniel, this is an HTML5 feature called placeholder,
though if you want more browser support you must develop a simple plugin to add a simple JS script for this.
Check the documentation section for more info about plugins.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum