1.0.0 • Published 2 years ago

dependentelementgenerator v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Java script intended to populate further dependent elements.

Currently set up for one (1) initially populated element with four (4) options and three (3) dependent elements with no set number of options.

To use, first set HTML id of selectorID elements, but leave blank. Set Primary selecting element (populatedSelector) with all options.

second fill empty arrays of toPopulate with desired dependent content. note the four (4) arrays correspond to the initial four (4) options. the three (3) internal correspond to the three (3) dependent elements. modify these amounts to suit.

This code is intended to be as modular and easy to update as possible.