I want to get the value of the selected option from a dropdown list, in D3.js.
1
You don't need to use D3 to do that:
var sel = document.getElementById('myselect'); console.log(sel.options[sel.selectedIndex].value)