Helptext.js(luckydev.github.com) jQuery plugin to have help text in the form elements |
Helptext.js(luckydev.github.com) jQuery plugin to have help text in the form elements |
function hasPlaceholder() { var input = document.createElement('input'); return ('placeholder' in input); }
should do the job to detect support.
http://dev.w3.org/html5/spec/Overview.html#the-placeholder-a...
In HTML5 way, I need to do it first and then have to write a fallback mechanism. Kinda too long for me :) Instead, I chose what works perfectly now.