Theme Customizer – Conditional Controls
I can suggest you another direction : why bother generating a new Control in javascript when you can create controls A and B at the first page load and hide/show them dynamically using javascript ? If I understand well, this was what you described in option 3. Here is a sample code to get you … Read more