/** This tool manages two select inputs that have a parent/child relationship. When an option from the parent is selected, the child is populated with specific options for that parent. Example HTML: Example Javascript: child_options = { parent_option_key1: [ ['Child Option a1', 'option_a1_value'], ['Child Option a2', 'option_a2_value'] ], parent_option_key2: [ ['Child Option b1', 'option_b1_value'], ['Child Option b2', 'option_b2_value'] ], } Initialize the data-target-options: the list of for each child (see "Example Javascript" above) Possible Improvements: Auto initialize all any select with the "parent_child_select" class **/ /** * This is the plugin for the parent