{"id":13426869,"url":"https://github.com/diy/jquery-placeholder","last_synced_at":"2025-03-15T22:30:40.386Z","repository":{"id":3375921,"uuid":"4423444","full_name":"diy/jquery-placeholder","owner":"diy","description":"A jQuery plugin that polyfills the HTML5 \"placeholder\" attribute.","archived":false,"fork":false,"pushed_at":"2013-12-03T02:26:00.000Z","size":195,"stargazers_count":76,"open_issues_count":9,"forks_count":41,"subscribers_count":33,"default_branch":"master","last_synced_at":"2024-10-28T05:12:53.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://diy.github.com/jquery-placeholder/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"nvbn/thefuck","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-23T18:00:19.000Z","updated_at":"2021-01-04T14:52:20.000Z","dependencies_parsed_at":"2022-09-16T04:41:23.520Z","dependency_job_id":null,"html_url":"https://github.com/diy/jquery-placeholder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diy%2Fjquery-placeholder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diy%2Fjquery-placeholder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diy%2Fjquery-placeholder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diy%2Fjquery-placeholder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diy","download_url":"https://codeload.github.com/diy/jquery-placeholder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801600,"owners_count":20350105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T00:01:47.133Z","updated_at":"2025-03-15T22:30:35.352Z","avatar_url":"https://github.com/diy.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# .placeholder()\n\nA basic jQuery (\u003e= 1.7) plugin that reads the [**\"placeholder\"** attribute](http://www.w3.org/community/webed/wiki/HTML5_form_additions#placeholder) (HTML5) and renders the placeholder text as an overlay (if not natively supported). Unlike most other plugins, this works by adding a properly-positioned `\u003cspan\u003e` on top of the input element rather than setting its value. This keeps form serialization \u0026 validation from breaking. \n\n```javascript\n$('input[placeholder], textarea[placeholder]').placeholder();\n```\n\nCheck out the [demos](http://diy.github.com/jquery-placeholder/)!\n\n### Options\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003eOption\u003c/th\u003e\n\t\t\u003cth\u003eType\u003c/th\u003e\n\t\t\u003cth\u003eDefault\u003c/th\u003e\n\t\t\u003cth\u003eDescription\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd valign=\"top\"\u003eforce\u003c/td\u003e\n\t\t\u003ctd valign=\"top\"\u003e\u003ccode\u003ebool\u003c/code\u003e\u003c/td\u003e\n\t\t\u003ctd valign=\"top\"\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n\t\t\u003ctd valign=\"top\"\u003eIf \u003ccode\u003etrue\u003c/code\u003e, artificial placeholder elements will be added even if the browser natively supports them.\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n### CSS Styling\n\n```css\n.placeholder { color: #d0d0d0; }\n::-webkit-input-placeholder { color: #d0d0d0; }\ninput:-moz-placeholder, textarea:-moz-placeholder { color: #d0d0d0; }\n```\n\n## License\n\nCopyright \u0026copy; 2012 DIY Co\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiy%2Fjquery-placeholder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiy%2Fjquery-placeholder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiy%2Fjquery-placeholder/lists"}