< input type="range" min="0" max="1000" id="line" oninput="testMy()" value="0" list="rangeList1" >
< div id="my">0</ div>
< input type="text" id="ts" value="6">
function testMy() {
var line1 = document.getElementById("line");
var my1 = document.getElementById("ts");
my1.value = 0 + Number(line1.value)
}