Textbox - Watermark


About this example


  • Watermark(string watermarkText)
  • Watermark(string watermarkText,string watermarkCssClass)

When a watermarked TextBox is empty, it displays a message to the user with a custom CSS style.

Once the user has typed some text into the TextBox, the watermarked appearance goes away.

The typical purpose of a watermark is to provide more information to the user about the TextBox itself without cluttering up the rest of the page