Working with Checkboxes, Radio Buttons, and Dropdowns

What common form pattern does this code implement?
function setupDependentSelects(parent, child, mapping) {
  parent.addEventListener('change', () => {
    const selectedValue = parent.value;
    child.innerHTML = '';
    mapping[selectedValue]?.forEach(option => {
      child.add(new Option(option.text, option.value));
    });
    child.disabled = !mapping[selectedValue];
  });
}
Next Question (22/22)