• Got a Tipila, google, windows live or facebook account ?

This one is the best watermark plugin that I found so far http://code.google.com/p/jquery-watermark/

This is how to use:

  1. Download the js file from the above link (Make sure have jquery too)
  2. Add the following css to the site

css:

.watermark  {color: #999 !important;}
  1. Add following java script code to <head>

Code:

$(document).ready(function () {
            $.watermark.options.useNative = false;
            $('#txtSearch').watermark('Search tips');

Note: txtSearch is the name of the textbox. UserNative is set to false coz chrome does not display the placeholder attribute correctly if the textbox has the height set.

1
votes
Hi...!!!

Tipila is a site for programmers to save interesting things found on the web, as Tips.

No more wasting time by re-googling for things you've found but forgotten.

It's totally free...
Get started now

Login to Tipila