{"id":19157107,"url":"https://github.com/kinduff/limitcheckbox","last_synced_at":"2025-06-12T02:05:55.785Z","repository":{"id":16494116,"uuid":"19246824","full_name":"kinduff/limitcheckbox","owner":"kinduff","description":"jQuery plugin that offers an easy way to setup a limit to a checkbox collection.","archived":false,"fork":false,"pushed_at":"2014-06-06T17:11:30.000Z","size":192,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-29T00:58:10.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/kinduff.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":"2014-04-28T17:08:13.000Z","updated_at":"2021-05-15T20:04:05.000Z","dependencies_parsed_at":"2022-09-24T12:00:39.522Z","dependency_job_id":null,"html_url":"https://github.com/kinduff/limitcheckbox","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kinduff/limitcheckbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Flimitcheckbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Flimitcheckbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Flimitcheckbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Flimitcheckbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kinduff","download_url":"https://codeload.github.com/kinduff/limitcheckbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kinduff%2Flimitcheckbox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259382284,"owners_count":22848834,"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-11-09T08:38:21.565Z","updated_at":"2025-06-12T02:05:55.759Z","avatar_url":"https://github.com/kinduff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"limitcheckbox.js\n===========\n\n## Welcome\n\nThis is a jQuery plugin that offers an easy way to setup a limit to a checkbox collection. If you have 5 checkboxes and you want to limit the selection to 3 and leave the other ones disabled, this plugin is going to work for you.\n\n## Gem Install\n\nAdd this line to your application's Gemfile:\n\n```bash\ngem 'limitcheckbox'\n```\n\nAnd then execute:\n\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n\n```bash\n$ gem install limitcheckbox\n```\n\nThen include **limitcheckbox.js** in your javascript file\n\n```javascript\n//= require limitcheckbox\n```\n\nOr include the minified version\n\n```javascript\n//= require limitcheckbox-min\n```\n\n## Manual Install\n\nMake sure to include jQuery in your page.\n\n```html\n\u003cscript src=\"jquery.min.js\"\u003e\u003c/script\u003e\n```\n\nAnd then include **limitcheckbox.js**. There unminified version it's located at the `src` folder. The minified version its located at the `build` folder. \n\n```html\n\u003cscript src=\"js/limitcheckbox-min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n5 checkboxes and I want to set a limit of 3.\n\n```html\n\u003cdiv id=\"checkboxes\"\u003e\n    \u003cinput type=\"checkbox\" /\u003e \u003c!-- 1 --\u003e\n    \u003cinput type=\"checkbox\" /\u003e \u003c!-- 2 --\u003e\n    \u003cinput type=\"checkbox\" /\u003e \u003c!-- 3 --\u003e\n    \u003cinput type=\"checkbox\" /\u003e \u003c!-- 4 --\u003e\n    \u003cinput type=\"checkbox\" /\u003e \u003c!-- 5 --\u003e\n\u003c/div\u003e\n```\n```javascript\n$('#checkboxes').limitCheckbox(3);\n```\n\n### Callback\n```javascript\n$('#checkboxes').limitCheckbox(3, {\n  callback: function() {\n    // Options\n  }\n);\n```\n\nNotice that **limitcheckbox.js** will check the checkboxes from your main element when called in order to disable if they're already *checked*.\n\n## Demo\n\n[Click here](http://jsfiddle.net/kinduff/wBZk9/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinduff%2Flimitcheckbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkinduff%2Flimitcheckbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkinduff%2Flimitcheckbox/lists"}