paperclip pollyfill for input placeholders
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This paperclip plugin provides cross-browser support for the placeholder attribute. It's supported in all major browsers including IE8+.


  • bower install paperclip-placeholder-pollyfill


You'll need to first register the pollyfill as a paperclip plugin:

var paperclip = require("paperclip");

//note that the pollyfill isn't registered if the browser supports placeholder.

After you've registered the placeholder pollyfill, you can start using it. For example:


<!-- *placeholder* pollyfill is added for IE, and ignored for any other browser that supports it-->
<input type="text" placeholder="Enter name here" data-bind="{{ model: name }}" /> 

  Hello {{name}}!

Would render properly in all browsers that don't support placeholder.