I\'m trying to write a simple placeholder jQuery plugin for a site of mine but of course I only want to fire the function if the native placeholder attribute isn\'t supporte
Use the Modernizr library, which you can find here: http://www.modernizr.com/
And then do this:
if (Modernizr.input.placeholder) {
// your placeholder text should already be visible!
} else {
// no placeholder support :(
// fall back to a scripted solution
}
Modernizr is really handy for testing the browser's support for almost all HTML5 functionality.