{"_id":"jquery-placeholder","_rev":"16-20ec0291c26830df05a5f813718713a0","name":"jquery-placeholder","description":"A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet","dist-tags":{"latest":"2.3.1"},"versions":{"2.0.7":{"name":"jquery-placeholder","version":"2.0.7","description":"A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet","main":"jquery.placeholder.js","directories":{"test":"tests"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/mathiasbynens/jquery-placeholder.git"},"keywords":["jquery","placeholder","html5","placeholder","ie"],"author":{"name":"Mathias Bynens","email":"http://mathiasbynens.be/"},"license":"MIT","bugs":{"url":"https://github.com/mathiasbynens/jquery-placeholder/issues"},"homepage":"https://github.com/mathiasbynens/jquery-placeholder","_id":"jquery-placeholder@2.0.7","dist":{"shasum":"cc764bbddfb63c545b9eaf9cca692dd92168bfe2","tarball":"https://registry.npmjs.org/jquery-placeholder/-/jquery-placeholder-2.0.7.tgz","integrity":"sha512-Hhf2TMPzPQdHS2EtUA/0ZXewtTcfNthYEkLcNhE5FwDKMNjFGGjpgrhH1+K4KUWUVgqv8jHx5WcohDtGLrNdIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/5zwffX1u5V3WZxrrHDp6i9TDnx0/z1iYpS/zi7H9lAIgXG7SC4+1Y23UXgwIXxusKNeeuZfhHYezuftj9n/Hxiw="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":"feross@feross.org"}]},"2.1.0":{"name":"jquery-placeholder","version":"2.1.0","title":"HTML5 Placeholder jQuery Plugin","description":"A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"license":"MIT","repository":{"type":"git","url":"https://github.com/mathiasbynens/jquery-placeholder.git"},"homepage":"https://github.com/mathiasbynens/jquery-placeholder","bugs":{"url":"https://github.com/mathiasbynens/jquery-placeholder/issues"},"main":"jquery.placeholder.js","directories":{"test":"tests"},"scripts":{"postinstall":"bower install"},"keywords":["form","placeholder","jQuery","jquery-plugin"],"devDependencies":{"grunt":"^0.4.5","grunt-contrib-uglify":"^0.7.0","grunt-notify":"^0.4.1","load-grunt-tasks":"^2.0.0","time-grunt":"^1.0.0"},"gitHead":"eaf113e5be160b157f0feb2d69a8f09612569599","_id":"jquery-placeholder@2.1.0","_shasum":"1c05111997446e894412b33bf10a0287b1f4ba00","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":"feross@feross.org"}],"dist":{"shasum":"1c05111997446e894412b33bf10a0287b1f4ba00","tarball":"https://registry.npmjs.org/jquery-placeholder/-/jquery-placeholder-2.1.0.tgz","integrity":"sha512-imrwJD/kVIwK/aoETPPX0QldJZOlsYPajOneK9654luoRGxSFmvVb93aAzLAX0hgZIkJg7JOjy92Nu7XtPvkjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4StsOTUu+mCLbWwA2x9CNzlUHInr9qOGguiSu35pw2gIhAI5bGGDoAOj6wOMbYRogro7tBgummA8Ws3RofLhA8C9h"}]}},"2.1.1":{"name":"jquery-placeholder","version":"2.1.1","title":"HTML5 Placeholder jQuery Plugin","description":"A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"license":"MIT","repository":{"type":"git","url":"https://github.com/mathiasbynens/jquery-placeholder.git"},"homepage":"https://github.com/mathiasbynens/jquery-placeholder","bugs":{"url":"https://github.com/mathiasbynens/jquery-placeholder/issues"},"main":"jquery.placeholder.js","directories":{"test":"tests"},"keywords":["form","placeholder","jQuery","jquery-plugin"],"devDependencies":{"grunt":"^0.4.5","grunt-contrib-uglify":"^0.7.0","grunt-notify":"^0.4.1","load-grunt-tasks":"^2.0.0","time-grunt":"^1.0.0"},"gitHead":"256d75e45fca23c85c7f5e78f3c5941605ec3aa8","_id":"jquery-placeholder@2.1.1","scripts":{},"_shasum":"7f2f8a7d17931c17cd17c6bf2833a0f239a173c5","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":"feross@feross.org"}],"dist":{"shasum":"7f2f8a7d17931c17cd17c6bf2833a0f239a173c5","tarball":"https://registry.npmjs.org/jquery-placeholder/-/jquery-placeholder-2.1.1.tgz","integrity":"sha512-Oe+Ya0mDv2iDZhuWS87p3B4MmJZfwey7jaBv8ulSAvgXyrkUlPG7qdT7GV1VZhf84EyZxbzXC0RofQz8/mPZjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvNk6saU9HwZPxd4ByH9+9MSDhuB2GmcaToRu1HbXtEAiEAmm5j1zO9YIMyvP15GuCh3fUKxTO2TzdWFAgnKgRgcQE="}]}},"2.3.1":{"name":"jquery-placeholder","version":"2.3.1","title":"HTML5 Placeholder jQuery Plugin","description":"A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jquery-placeholder.git"},"homepage":"https://github.com/mathiasbynens/jquery-placeholder","bugs":{"url":"https://github.com/mathiasbynens/jquery-placeholder/issues"},"main":"jquery.placeholder.js","files":["jquery.placeholder.js"],"directories":{"test":"tests"},"keywords":["form","placeholder","jQuery","jquery-plugin"],"peerDependencies":{"jquery":"*"},"devDependencies":{"grunt":"^0.4.5","grunt-contrib-uglify":"^0.7.0","grunt-notify":"^0.4.1","load-grunt-tasks":"^2.0.0","time-grunt":"^1.0.0"},"gitHead":"bd18712c2f6cc6be2dfd7310a89044b09610057e","_id":"jquery-placeholder@2.3.1","scripts":{},"_shasum":"6025a1241019c08a8fb3ab8ed076285c05ba5e91","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"6025a1241019c08a8fb3ab8ed076285c05ba5e91","tarball":"https://registry.npmjs.org/jquery-placeholder/-/jquery-placeholder-2.3.1.tgz","integrity":"sha512-5MK5cRqAfgLrnky1vlLOoK/1SSivYmCFDWwYWLI92aD7VhiIBMmmI6V56F5xyROIXCJnd4BtTBtWzEZ3SiIGTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFVGmrWjgoDqEiBatL8xcwLoaC6HFDzElkZUS8CjkwwAiBFlWKCDd1QV3L6+tj4LHa4uHUNh865XicLcU8j0g7p1A=="}]},"maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"callumacrae","email":"callum@macr.ae"}]}},"readme":"# HTML5 Placeholder jQuery Plugin\n\n## Demo & Examples\n\n<https://mathiasbynens.github.io/jquery-placeholder/>\n\n## Example Usage\n\n### HTML\n\n```html\n<input type=\"text\" name=\"name\" placeholder=\"e.g. John Doe\">\n<input type=\"email\" name=\"email\" placeholder=\"e.g. address@example.ext\">\n<input type=\"url\" name=\"url\" placeholder=\"e.g. https://mathiasbynens.be/\">\n<input type=\"tel\" name=\"tel\" placeholder=\"e.g. +32 472 77 69 88\">\n<input type=\"password\" name=\"password\" placeholder=\"e.g. h4x0rpr00fz\">\n<input type=\"search\" name=\"search\" placeholder=\"Search this site…\">\n<textarea name=\"message\" placeholder=\"Your message goes here\"></textarea>\n```\n\n### jQuery\n\nUse the plugin as follows:\n\n```js\n$('input, textarea').placeholder();\n```\n\nBy default, `.placeholder` css class will be added. You can override default by passing the `customClass` option:\n```js\n$('input, textarea').placeholder({ customClass: 'my-placeholder' });\n```\n\nYou’ll still be able to use `jQuery#val()` to get and set the input values. If the element is currently showing a placeholder, `.val()` will return an empty string instead of the placeholder text, just like it does in browsers with a native `@placeholder` implementation. Calling `.val('')` to set an element’s value to the empty string will result in the placeholder text (re)appearing.\n\n### CSS\n\nThe plugin automatically adds `class=\"placeholder\"` to the elements who are currently showing their placeholder text. You can use this to style placeholder text differently:\n\n```css\ninput, textarea { color: #000; }\n.placeholder { color: #aaa; }\n```\n\nI’d suggest sticking to the `#aaa` color for placeholder text, as it’s the default in most browsers that support `@placeholder`. If you really want to, though, you can [style the placeholder text in some of the browsers that natively support it](https://stackoverflow.com/a/2610741/96656).\n\n## Installation\n\nYou can install jquery-placeholder by using [Bower](http://bower.io/).\n\n```bash\nbower install jquery-placeholder\n```\n\nOr you can install it through [npm](https://www.npmjs.com/):\n\n```\nnpm install --save jquery-placeholder\n```\n\nContributors should install the »dev dependencies« after forking and cloning via [npm](https://www.npmjs.com/).\n\n```bash\nnpm install\n```\n\n## Notes\n\n* Requires jQuery 1.6+. For an older version of this plugin that works under jQuery 1.4.2+, see [v1.8.7](https://github.com/mathiasbynens/jquery-placeholder/tree/v1.8.7).\n* Works in all A-grade browsers, including IE6.\n* Automatically checks if the browser natively supports the HTML5 `placeholder` attribute for `input` and `textarea` elements. If this is the case, the plugin won’t do anything. If `@placeholder` is only supported for `input` elements, the plugin will leave those alone and apply to `textarea`s exclusively. (This is the case for Safari 4, Opera 11.00, and possibly other browsers.)\n* Caches the results of its two feature tests in `jQuery.fn.placeholder.input` and `jQuery.fn.placeholder.textarea`. For example, if `@placeholder` is natively supported for `input` elements, `jQuery.fn.placeholder.input` will be `true`. After loading the plugin, you can re-use these properties in your own code.\n* Using `<input type=\"reset\" />` will break the plugin functionality \n* Makes sure it never causes duplicate IDs in your DOM, even in browsers that need an extra `input` element to fake `@placeholder` for password inputs. This means you can safely do stuff like:\n\n    ```html\n    <label for=\"bar\">Example label</label>\n    <input type=\"password\" placeholder=\"foo\" id=\"bar\">\n    ```\n\n    And the `<label>` will always point to the `<input>` element you’d expect. Also, all CSS styles based on the ID will just work™.\n\n## License\n\nThis plugin is available under [the MIT license](http://mths.be/mit).\n\n## Thanks to…\n\n* [Paul Irish](http://paulirish.com/) for his inspiring snippet in [jQuery 1.4 Hawtness #1](http://jquery14.com/day-05/jquery-1-4-hawtness-1-with-paul-irish)\n* everyone from [#jquery](http://webchat.freenode.net/?channels=jquery) for the tips, ideas and patches\n* anyone who [contributed a patch](https://github.com/mathiasbynens/jquery-placeholder/contributors) or [made a helpful suggestion](https://github.com/mathiasbynens/jquery-placeholder/issues)\n\n_– [Mathias](http://mathiasbynens.be/)_\n","maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"callumacrae","email":"callum@macr.ae"}],"time":{"modified":"2022-06-19T05:09:07.894Z","created":"2013-09-26T23:53:58.564Z","2.0.7":"2013-09-26T23:54:01.872Z","2.1.0":"2015-02-02T22:59:48.846Z","2.1.1":"2015-03-11T22:07:41.632Z","2.3.1":"2016-01-12T22:29:06.659Z"},"author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jquery-placeholder.git"},"homepage":"https://github.com/mathiasbynens/jquery-placeholder","keywords":["form","placeholder","jQuery","jquery-plugin"],"bugs":{"url":"https://github.com/mathiasbynens/jquery-placeholder/issues"},"license":"MIT","readmeFilename":"README.md","users":{"andreisarbu":true,"shaggybb":true,"tolg":true,"filipve":true}}