Have two dropdown lists where I'm attempting to pass the selected values for both to another function. Know the way I'm doing it isn't correct but been looking at it for so long can't see the probably simple solution.
d3.select("#parameterType").on("change", function()
{
var selectedParameter = this.value;
console.log(selectedParameter);
filterData(selectedParameter);
});
d3.select("#dateTimeTaken").on("change", function()
{
var selectedMonth = this.value;
console.log(selectedMonth);
filterData(selectedMonth)
});
function filterData(selectedParameter,selectedMonth)
{
console.log(selectedParameter);
console.log(selectedMonth);
}
Can anyone help point me in the right direction?