{"id":19922212,"url":"https://github.com/sutara79/jquery.add-input-area","last_synced_at":"2025-09-13T06:39:47.026Z","repository":{"id":3244663,"uuid":"4281812","full_name":"sutara79/jquery.add-input-area","owner":"sutara79","description":"jQuery plug-in. You can add or delete the list of input area.","archived":false,"fork":false,"pushed_at":"2018-09-03T03:42:20.000Z","size":909,"stargazers_count":48,"open_issues_count":1,"forks_count":25,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-10T08:51:25.509Z","etag":null,"topics":["html-form","jquery-plugin"],"latest_commit_sha":null,"homepage":"https://sutara79.github.io/jquery.add-input-area/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sutara79.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-10T08:09:32.000Z","updated_at":"2025-04-15T10:20:29.000Z","dependencies_parsed_at":"2022-09-11T03:52:31.970Z","dependency_job_id":null,"html_url":"https://github.com/sutara79/jquery.add-input-area","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/sutara79/jquery.add-input-area","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.add-input-area","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.add-input-area/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.add-input-area/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.add-input-area/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sutara79","download_url":"https://codeload.github.com/sutara79/jquery.add-input-area/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.add-input-area/sbom","scorecard":{"id":860544,"data":{"date":"2025-08-11","repo":{"name":"github.com/sutara79/jquery.add-input-area","commit":"5f4d0bb21625de3b5ca68eb4703ff1aea317fae6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T01:08:37.729Z","repository_id":3244663,"created_at":"2025-08-24T01:08:37.729Z","updated_at":"2025-08-24T01:08:37.729Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274929303,"owners_count":25375710,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["html-form","jquery-plugin"],"created_at":"2024-11-12T22:10:01.029Z","updated_at":"2025-09-13T06:39:46.963Z","avatar_url":"https://github.com/sutara79.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery.add-input-area\n\n[![npm version](https://img.shields.io/npm/v/jquery.add-input-area.svg)](https://www.npmjs.com/package/jquery.add-input-area)\n[![Build Status](https://travis-ci.org/sutara79/jquery.add-input-area.svg?branch=master)](https://travis-ci.org/sutara79/jquery.add-input-area)\n\njQuery plugin to add or delete form fields.\n\n![Sample image](demo/image.png)\n\n\n## Demo\nhttps://sutara79.github.io/jquery.add-input-area/\n\n\n## Install\n- [GitHub](https://github.com/sutara79/jquery.add-input-area): Clone or download.\n- [npm](https://www.npmjs.com/package/jquery.add-input-area): `npm i jquery.add-input-area`\n- CDN [(jsDelivr)](https://www.jsdelivr.com/):\n    - [jquery.add-input-area.min.js (v4.11.0)](https://cdn.jsdelivr.net/npm/jquery.add-input-area@4.11.0/dist/jquery.add-input-area.min.js)\n\n\n## Usage\n\n###### HTML\n```html\n\u003col id=\"list\"\u003e\u003c!-- \"id\" attribute is required --\u003e\n  \u003cli class=\"list_var\"\u003e\u003c!-- .(id)_var --\u003e\n    \u003cinput type=\"text\" name=\"list_0\" id=\"list_0\"\u003e\n    \u003cbutton class=\"list_del\"\u003eDelete\u003c/button\u003e\u003c!-- .(id)_del --\u003e\n  \u003c/li\u003e\n\u003c/ol\u003e\n\u003cinput type=\"button\" value=\"Add\" class=\"list_add\"\u003e\u003c!-- .(id)_add --\u003e\n\n\u003cscript src=\"https://code.jquery.com/jquery-3.3.1.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"jquery.add-input-area.min.js\"\u003e\u003c/script\u003e\n```\n\n###### JavaScript\n```javascript\n$('#list').addInputArea();\n```\n\n## Naming convention\n- CSS class for the wrapper of form fields: `.(id)_var`\n- CSS class for del-button: `.(id)_del`\n- CSS class for add-button: `.(id)_add`\n\nYou can change these rules above by options. (`area_var`, `btn_add`, `btn_del`)\n\n\n- Form field: `(a text)_0`\n\nIf you follow this rule, \"name\", \"id\" and \"for\" attribute are numbered automatically.\n\n```html\n(default)\n\u003cinput type=\"text\" name=\"foo_0\"\u003e\n\n(add)\n\u003cinput type=\"text\" name=\"foo_1\"\u003e\n\u003cinput type=\"text\" name=\"foo_2\"\u003e\n\u003cinput type=\"text\" name=\"foo_3\"\u003e\n```\n\nYou can use original naming convention by setting custom data attribute, \"data-name-format\" or \"data-id-format\".\n\n``` html\n(default)\n\u003cinput type=\"text\" data-name-format=\"foo_%d_bar\" name=\"foo_0_bar\"\u003e\n\n(add)\n\u003cinput type=\"text\" data-name-format=\"foo_%d_bar\" name=\"foo_1_bar\"\u003e\n\u003cinput type=\"text\" data-name-format=\"foo_%d_bar\" name=\"foo_2_bar\"\u003e\n```\n\n```html\n(default)\n\u003cinput type=\"text\" data-name-format=\"data[posts][mail][%d]\" name=\"data[posts][mail][0]\"\u003e\n\n(add)\n\u003cinput type=\"text\" data-name-format=\"data[posts][mail][%d]\" name=\"data[posts][mail][1]\"\u003e\n\u003cinput type=\"text\" data-name-format=\"data[posts][mail][%d]\" name=\"data[posts][mail][2]\"\u003e\n```\n\n- See [How to use on CakePHP (jquery.add-input-area v4.7.1, CakePHP v2.3.8)](http://code.runnable.com/U7vCAlCwvQZzFZBO/how-to-use-jquery-add-input-area-on-cakephp)\n\n\n## Options\n|Name                                                                     |Type    |Default    |Description                                   |\n|-------------------------------------------------------------------------|--------|-----------|----------------------------------------------|\n|[area_var](https://sutara79.github.io/jquery.add-input-area/#index_02)   |string  |'.(id)_var'|CSS class for the wrapper of form fields.     |\n|[btn_add](https://sutara79.github.io/jquery.add-input-area/#index_02)    |string  |'.(id)_add'|CSS class for add button.                     |\n|[btn_del](https://sutara79.github.io/jquery.add-input-area/#index_02)    |string  |'.(id)_del'|CSS class for delete button.                  |\n|[area\\_del](https://sutara79.github.io/jquery.add-input-area/#index_04)  |string  |(btn_del)  |CSS class for wrapper of delete button.       |\n|[after_add](https://sutara79.github.io/jquery.add-input-area/#index_10)  |function|null       |A callback function to be called after adding.|\n|[clone_event](https://sutara79.github.io/jquery.add-input-area/#index_11)|boolean |true       |If event will be copied or not.               |\n|[maximum](https://sutara79.github.io/jquery.add-input-area/#index_05)    |number  |0          |Max number of wrapper of form fields. \"0\" means unlimited.|\n|[dont_clone](https://sutara79.github.io/jquery.add-input-area/#index_12)    |string  |null       |CSS selector to avoid cloning.|\n|[validate](https://sutara79.github.io/jquery.add-input-area/#index_13)    |function  |null       |Validation before adding. Should return boolean. If false, adding stops.|\n\n\n## License\n[MIT](https://www.opensource.org/licenses/mit-license.php)\n\n\n## Author\n[Yuusaku Miyazaki](http://d.hatena.ne.jp/sutara_lumpur/20120509/1336556562)\n( \u003ctoumin.m7@gmail.com\u003e )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsutara79%2Fjquery.add-input-area","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsutara79%2Fjquery.add-input-area","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsutara79%2Fjquery.add-input-area/lists"}