/placeholderPolyfill

Stand alone polyfill to support placeholders on legacy browsers.

Primary LanguageJavaScript

placeholderPolyfill

Stand alone and lightweight polyfill to support placeholders on legacy browsers.

This script is stand alone and does not required any external library.

Supports

  • Browsers: IE8+ and any other browsers (which will bypass the script when unnecessary).
  • HTML: Use of the 'placeholder' attribute on input element (only after page load).
  • CSS: Can be styled along with other standard placeholder styles.

Usage

Simply load this script in your HTML code and customize the style to your liking.