
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
This 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.
Add this line to your application's Gemfile:
gem 'limitcheckbox'
And then execute:
$ bundle
Or install it yourself as:
$ gem install limitcheckbox
Then include limitcheckbox.js in your javascript file
//= require limitcheckbox
Or include the minified version
//= require limitcheckbox-min
Make sure to include jQuery in your page.
<script src="jquery.min.js"></script>
And then include limitcheckbox.js. There unminified version it's located at the src
folder. The minified version its located at the build
folder.
<script src="js/limitcheckbox-min.js"></script>
5 checkboxes and I want to set a limit of 3.
<div id="checkboxes">
<input type="checkbox" /> <!-- 1 -->
<input type="checkbox" /> <!-- 2 -->
<input type="checkbox" /> <!-- 3 -->
<input type="checkbox" /> <!-- 4 -->
<input type="checkbox" /> <!-- 5 -->
</div>
$('#checkboxes').limitCheckbox(3);
$('#checkboxes').limitCheckbox(3, {
callback: function() {
// Options
}
);
Notice that limitcheckbox.js will check the checkboxes from your main element when called in order to disable if they're already checked.
FAQs
Unknown package
We found that limitcheckbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.