r/jquery • • Apr 22 '12

Watermark jquery widget

http://www.codeitbetter.co.uk/widgets/watermark/
0 Upvotes

2 comments sorted by

3

u/[deleted] Apr 22 '12

you dont need jquery: http://davidwalsh.name/html5-placeholder

edit: except for IE ...

3

u/spangborn Apr 22 '12

In which case you can use the more widely used placeholder plugin to make the HTML5 placeholder attribute work in browsers like IE that don't support it.

I'd rather use the HTML5 attribute and add the placeholder plugin for browsers that don't support it. Placeholder has been around a lot longer and is more widely used and tested.