{
  "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"
  },
  "readme": "# HTML5 Placeholder jQuery Plugin\n\n## Demo & Examples\n\n[http://mathiasbynens.be/demo/placeholder](http://mathiasbynens.be/demo/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. http://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\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](http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css/2610741#2610741).\n\n## Installation\n\nYou can install jquery-placeholder by using [Bower](http://bower.io).\n\n```bash\nbower install jquery-placeholder\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/1.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* 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* temp01 for his major contributions\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",
  "readmeFilename": "README.md",
  "_id": "jquery-placeholder@2.0.7",
  "_from": "jquery-placeholder@~2.0.7"
}
