Skip to content

Allows a group of dropdowns to share a common set of options that are show/hidden if one is selected

Notifications You must be signed in to change notification settings

znbailey/jQuery-Shared-Options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A jQuery plugin that allows a group of select dropdowns to share a common set of options, where if one of the options is selected it becomes unavailable in the other select dropdowns.

Example Usage

You probably want to just look at the example, but if you prefer to read prose instead of code, here goes --

`$('select.shared-options').sharedOptions();

Note: Like you'd expect, you may use any jQuery selector for the first call. The plugin is also written to support idiomatic jQuery chain-ability so you can do things like:

$('select.shared-options').sharedOptions().somethingElse().anotherThing();

Known Limitations/Shortcomings

  • Currently, only works for select dropdowns that do not allow multiple selections to be made

About

Allows a group of dropdowns to share a common set of options that are show/hidden if one is selected

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published