#data-driven dropdown
A simple d3js component that generates html <select></select>
and <option></option>
elements from data.
Sharing this in hopes that seeing the pattern in isolation with simple data makes it easier to add this functionality to your d3js project.
https://d3js.org/d3.v2.js