This package has been deprecated

Author message:

This polyfill is (a) very old and (b) no longer maintained :P

jquery-placeholder-text

1.0.3 • Public • Published

jquery placeholderText

A placeholder attribute polyfill plugin for you jQuery users out there. This has been tested in modern browsers ( which is fake ) and more importantly IE8. What else would you need it for? This is a stupid plugin for those projects that require you to support trash browsers. This plugin is already on its way out the doors because we shouldn't need to do this anymore in the first place. But, for now...

Usage

(function ( $ ) {
    $( "input, textarea" ).placeholderText();
})( jQuery )

Output(ish)

<span class="placeholder-text">
    <input type="text" class="placeholder-text__elem" placeholder="Who cares" />
    <span class="placeholder-text__shim placeholder-text__shim--input">Who cares</span>
</span>

Testing

Browser

# Start the node server 
node server/server.js

You should be able to go here localhost:5050

Downsides

You can't clone placeholder text styles so you may need to tweak styling in css ( oh no :O ).

Package Sidebar

Install

npm i jquery-placeholder-text

Weekly Downloads

25

Version

1.0.3

License

none

Last publish

Collaborators

  • kitajchuk