good day,
using jquery how could i pass value of
table_container to other control let say textbox?
once it is run the content of the
table_container is list of country and it is inside the drop down list.. once the user selects on the
table_container it will pass the data of the
table_container to the textbox.
d3.json("data/world-population.geo.json", function (json) {
json.features.forEach(function (d, i) {
data.forEach(function (e, j) {
if (d.properties.name === e.Country) {
d.properties.value = +e.Result;
};
})
})
jsonOutside = json;
var dropDown = d3.select("#table_container").append("select")
var options = dropDown.selectAll("option")
.data(data)
.enter()
.append("option");
options.text(function (d) { return d.Country; })
.attr("value", function (d) { return d.Country; })
.on("click", function (d) { tableRowClicked(d); });