You probably want:
d3.select("#timeSlider").property("value", steppingVariable);
This sets the "value" property of the DOM node. As this is a
single-element selection, you could also do the equivalent:
d3.select("#timeSlider").node().value = steppingVariable;
My first suggestion would also work for multiple-element selections
though.
--
Jason Davies, http://www.jasondavies.com/
D3 uses CSS3 selectors: http://www.w3.org/TR/css3-selectors/
So yeah, you need .attr("id", "something") if you subsequently have
d3.select("#something").
Alternatively, you can keep a reference if you added the element using
D3, e.g.
var timeSlider = d3.select("body").append("input")
.attr("type", "range")
.attr("min", 0)
.attr("max", 100);
Later, you can say:
timeSlider.property("value", ...);