JSFiddle - React, Tailwind, and code Playground
by DiceMasters
HTML
<input type="range" min="0" max="1000" id="line" value="0" list="rangeList1" >
<div id="my">0</div>
<input type="text" id="ts" value="6">
JavaScript
let defaultVal = document.getElementById('ts').value
document.getElementById('line').addEventListener('input', function(e) {
document.getElementById('ts').value = Number(defaultVal) + Number(e.target.value)
})