{"id":15628794,"url":"https://github.com/nunof07/jquery-selectall","last_synced_at":"2026-01-23T03:47:30.814Z","repository":{"id":145580717,"uuid":"41678658","full_name":"nunof07/jquery-selectall","owner":"nunof07","description":"jQuery Select All Checkboxes Plugin","archived":false,"fork":false,"pushed_at":"2015-08-31T15:15:25.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:55:31.642Z","etag":null,"topics":["jquery-plugin"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nunof07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-31T14:03:24.000Z","updated_at":"2017-03-27T18:30:45.000Z","dependencies_parsed_at":"2023-04-06T15:46:54.456Z","dependency_job_id":null,"html_url":"https://github.com/nunof07/jquery-selectall","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunof07%2Fjquery-selectall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunof07%2Fjquery-selectall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunof07%2Fjquery-selectall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunof07%2Fjquery-selectall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nunof07","download_url":"https://codeload.github.com/nunof07/jquery-selectall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137994,"owners_count":21053775,"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":["jquery-plugin"],"created_at":"2024-10-03T10:23:45.325Z","updated_at":"2026-01-23T03:47:30.785Z","avatar_url":"https://github.com/nunof07.png","language":"HTML","readme":"# jQuery Select All Checkboxes Plugin\njQuery plugin to handle \"select all checkboxes\" behavior:\n- when a \"select all\" checkbox changes state, all related checkboxes change state accordingly;\n- when all checkboxes are checked, the \"select all\" checkbox is also checked;\n- when at least one checkbox is unchecked, the \"select all\" checkbox is unchecked.\n\n## Demos\n- [Demo 1](https://cdn.rawgit.com/nunof07/jquery-selectall/67c954a8c3c130130a19ab457cbd8e29b6585e58/demo1.html)\n- [Demo 2](https://cdn.rawgit.com/nunof07/jquery-selectall/67c954a8c3c130130a19ab457cbd8e29b6585e58/demo2.html)\n- [Demo 3](https://cdn.rawgit.com/nunof07/jquery-selectall/67c954a8c3c130130a19ab457cbd8e29b6585e58/demo3.html)\n\n## How to\n\n### Basic usage\nConsider the following HTML:\n\n```html\n\u003cinput type=\"checkbox\" class=\"selectAll\"\u003e Select all\u003cbr /\u003e\n\u003cinput type=\"checkbox\" value=\"AAA\" name=\"c1\"\u003e AAA\u003cbr /\u003e\n\u003cinput type=\"checkbox\" value=\"BBB\" name=\"c1\"\u003e BBB\u003cbr /\u003e\n\u003cinput type=\"checkbox\" value=\"CCC\" name=\"c1\"\u003e CCC\u003cbr /\u003e\n```\n\nTo enable the select all plugin:\n\n```javascript\n$(\".selectAll\").selectAll();\n```\n\nThis call will setup event handlers to monitor changes in the \"select all\" checkbox and in the other checkboxes. It will also update the state of the \"select all\" checkbox in case all checkboxes are already checked.\n\nAll checkboxes will be targeted by default.\n\n### Target specific checkboxes\nIf you want to target specific checkboxes, pass a checkbox selector string:\n\n```javascript\n$(\".selectAll\").selectAll(\".checkbox\");\n```\n\n### Alternative usage\nAlternatively, you can call the plugin on a parent container:\n\n```javascript\n$(\".container\").selectAll({\n\tcontainer: true,\t\t\t// specify that we are using it on a container\n\tselectAll: \".selectAll\",\t// the \"select all\" checkbox selector string\n\tcheckbox: \".checkbox\"\t\t// optionally target specific checkboxes\n});\n```\n\nThis usage has several advantages:\n- If you have several groups of checkboxes with the same classes on their own containers, this will apply the \"select all\" behavior appropriately to all of them.\n- Support for dynamic DOM changes. If checkboxes are being added/removed dynamically on the page, you can call this beforehand on a container. When a checkbox is added/removed, the state of the \"select all\" checkbox will be updated (this last part doesn't work on IE10 or below).\n\n### Override defaults\nYou can override the default options:\n\n```javascript\n$.fn.selectAll.defaults = {\n\tcheckbox: \"input[type='checkbox']\",\n\tcontainer: false,\n\tselectAll: \".selectAll\"\n};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunof07%2Fjquery-selectall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnunof07%2Fjquery-selectall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunof07%2Fjquery-selectall/lists"}