I have two html elements:
I\'m using d3 to add a listener in a s
I've found solution:
d3.select("#id").node().value
Use the third argument:
function getSearchText(d, i, o) { const myValue = o[0].value; }
Try using an instance of this to get the value:
this
d3.select("#searchResults").html(this.value);