|
|
|
|
|
by richbradshaw
5362 days ago
|
|
Why wouldn't you use the placeholder, attribute, then detect support, then use a fallback if needed... Something like: 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...