PHPackages                             trafficsland/dependent-dropdown - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. trafficsland/dependent-dropdown

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

trafficsland/dependent-dropdown
===============================

A multi level dependent dropdown JQuery plugin that allows nested dependencies.

1.0.3(9y ago)0731BSD-3-ClauseJavaScript

Since Feb 17Pushed 9y agoCompare

[ Source](https://github.com/trafficsland/dependent-dropdown)[ Packagist](https://packagist.org/packages/trafficsland/dependent-dropdown)[ Docs](https://github.com/trafficsland/dependent-dropdown)[ RSS](/packages/trafficsland-dependent-dropdown/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)DependenciesVersions (5)Used By (1)

dependent-dropdown + supports multiple select v.1.0.1
=====================================================

[](#dependent-dropdown--supports-multiple-select-v101)

Features
--------

[](#features)

- Apply the plugin on a select element and set dependency to one or more other input / select elements (including dependency nesting).
- Automatically convert `select` inputs with class `depdrop` to dependent dropdowns. The plugin supports HTML5 data attributes to configure the dependent dropdown options.
- Automatically initialize dependent dropdowns based on preselected values (useful for update scenario).
- Supports both `select` input with basic `options` and select with `optgroups`.
- Automatically lock/disable the dependent dropdown until dependent results are available.
- The plugin uses ajax call to the server to render the list of dependent options.
- Allows a loading indicator to be displayed in dependent select until the results are fetched from the server.
- Configure your own loading progress text to be displayed for each dependent dropdown before the results are fetched from the server.
- Display a placeholder label with an empty value. For `optgroups` automatically disable this option.
- Triggers JQuery events for advanced development. Events currently available are `depdrop.init`, `depdrop.change`, `depdrop.beforeChange`,`depdrop.afterChange`, and `depdrop.error`.
- Size of the entire plugin is less than 4KB (about 3KB for the minified JS and 1KB for the minified CSS).
- Ability to configure HTML attributes of each `option` element via ajax response (for example dynamically disabling some dropdown options or adding styles).

Installation
------------

[](#installation)

### Using Bower

[](#using-bower)

You can use the `bower` package manager to install. Run:

```
bower install dependent-dropdown

```

### Using Composer

[](#using-composer)

You can use the `composer` package manager to install. Either run:

```
$ php composer.phar require trafficsland/dependent-dropdown "@dev"

```

or add:

```
"trafficsland/dependent-dropdown": "@dev"

```

to your composer.json file

License
-------

[](#license)

**dependent-dropdown** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

3417d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25151470?v=4)[trafficsland](/maintainers/trafficsland)[@trafficsland](https://github.com/trafficsland)

---

Top Contributors

[![trafficsland](https://avatars.githubusercontent.com/u/25151470?v=4)](https://github.com/trafficsland "trafficsland (2 commits)")

---

Tags

jqueryoptiondropdownselectdependent

### Embed Badge

![Health badge](/badges/trafficsland-dependent-dropdown/health.svg)

```
[![Health](https://phpackages.com/badges/trafficsland-dependent-dropdown/health.svg)](https://phpackages.com/packages/trafficsland-dependent-dropdown)
```

###  Alternatives

[kartik-v/dependent-dropdown

A multi level dependent dropdown JQuery plugin that allows nested dependencies.

1825.1M3](/packages/kartik-v-dependent-dropdown)[snapappointments/bootstrap-select

The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 4 support.

9.8k494.8k3](/packages/snapappointments-bootstrap-select)[kartik-v/yii2-widget-depdrop

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets)

815.1M18](/packages/kartik-v-yii2-widget-depdrop)[kartik-v/yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).

455.0M9](/packages/kartik-v-yii2-widget-typeahead)[harvesthq/chosen

Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.

395.3M12](/packages/harvesthq-chosen)[jjj/chosen

Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.

28575.5k4](/packages/jjj-chosen)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
