HTML5 Placeholder Polyfill

Mimics HTML5 placeholder behavior in browsers that don't natively support it.

Author:MIGHTYminnow & Mickey Kay (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:5.7.2
Plugin version:1.2.0
Added to WordPress repository:15-08-2013
Last updated:21-06-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:4
Plugin URI:https://wordpress.org/plugins/html5-placehold...
Total downloads:3 381
Active installs:100+
plugin download
Click to start download

The HTML5 Placeholder Plugin simulates placeholder functionality for inputs and textareas, which is particularly handy in browsers that still need some work.

A MIGHTYminnow plugin.

Features

  • No setup necessary, works immediately after installing
  • Super lightweight, less than 3kb minified jQuery
  • Automatically detects for placeholder support – no need for extra feature detection like Modernizr
  • Based on Mathias Bynens’ widely popular and well tested polyfill – thanks Mathias!

How to use

This plugin creates and uses a placeholder() jQuery function, and invokes it for inputs and textareas. This happens automatically as soon as you install it. If for some crazy reason you would like to invoke it on other elements aside from inputs and textareas, you can do so with you own jQuery, like so:

jQuery('yourElement').placeholder()