How to test if the browser supports the native placeholder attribute?

Viewed 20971

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 supported…

How can I use jQuery to test for native support of the placeholder attribute?

4 Answers
Related