I'm putting together a d3 visualization that makes use of bootstrap and the bootstrap-switch libraries.
I've got a set of switches that are being generated by d3 which I'd like to listen to so that I can update the visualization based on their status; I've got an event listener on the switches but it's not doing anything:
d3.selectAll(".input").on("change", function() {
console.log(this)
})
http://jsfiddle.net/jy24dk20/1/
Can anyone tell me what I'm doing wrong?