I want to use the HTML5 \"placeholder\" attribute in my code if the user\'s browser supports it otherwise just print the field name on top of the f
HTML5
\"placeholder\"
function placeholderIsSupported() { var test = document.createElement('input'); return ('placeholder' in test); }
I used a jQuery-ized version as a starting point. (Just giving credit where it's due.)