small and easy watermark creator for inputs
Switch branches/tags
Nothing to show
Latest commit edb4abc Jul 19, 2012 @sagivo active css added
Failed to load latest commit information.
sample removed min version Jul 18, 2012 readme Jul 18, 2012
jquery-watermark.js active css added Jul 19, 2012


An extra-small ( <1k ) and easy watermark creator for inputs.

A working demo is under sample folder.


Go to the fridge and drink some beer.

Include jQuery script:

<script src="" type="text/javascript"></script>

Download jquery-watermark.min.js script and include it in your page:

<script src="jquery-watermark.min.js" type="text/javascript"></script>

Define your params (if you want):

var params = { activeCss: { 'color': 'Black', 'background-color': 'Blue', 'font-size': '20px' }, waterCss: {color: 'Gray'}};

The defaults are:

'waterCss': { color: 'Gray' },
'activeCss':  { color: 'Black' }

From within your code call to the watermark() function on your selector (in this case i used input fields).


Go and have another beer.


  • Sagiv Ofek


free for all! :)