
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
dependent-select-boxes
Advanced tools
Allows a child select box to change its options dependent on its parent select box
dependent-select-boxes
allows a child select box to change its options dependent on its parent select box.
You can pass in options as a third parameter. The currently supported options are:
childOptionIsDependentOnParentOption(childOption, parentOption)
:
Function that determines if the childOption
should be displayed if
parentOption
is selected. Default: true
if the value of the parent
option is a prefix of the value of the child option, else false
.resetParentOptionOnEmptyChildOption
:
Resets the parent option to an empty value if the child option changes
to an empty option. Default true
.new DependentSelectBoxes(document.getElementById('parent'), document.getElementById('child'), {
childOptionIsDependentOnParentOption(childOption, parentOption) {
...
},
resetParentOptionOnEmptyChildOption: false,
});
You can configure the default options by setting them via:
import { setDefaultOptions } from 'dependent-select-boxes';
setDefaultOptions({
...
});
// npm install dependent-select-boxes --save
import DependentSelectBoxes from 'dependent-select-boxes';
const dependentSelectBoxes = new DependentSelectBoxes(parent, child, options);
If you would like to submit a pull request
with any changes you make, please feel free!
Simply run npm test
to test and npm start
to compile before submitting pull requests.
Please use the GitHub issue tracker to raise any problems or feature requests.
FAQs
Allows a child select box to change its options dependent on its parent select box
The npm package dependent-select-boxes receives a total of 0 weekly downloads. As such, dependent-select-boxes popularity was classified as not popular.
We found that dependent-select-boxes 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.