jquery.placeholder.js
jQuery plugin to add HTML5 placeholder support for browser yet to implement it
usage
<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.placeholder.js"></script> <script type="text/javascript"> $(function() { function hasPlaceholderSupport() { var i = document.createElement('input'); return 'placeholder' in i; } if(!hasPlaceholderSupport()) { $("#loginform").placeholder(); } }) </script> <style type="text/css"> li {list-style-type:none;} </style>