xxxxxxxxxx
1
<label class="form-label" for="customRange1">Example range</label>
2
<div class="range">
3
<input type="range" class="form-range" id="customRange1" />
4
</div>
5
<div id="value"></div>
1
1
xxxxxxxxxx
1
const cont = document.querySelector('#value')
2
document.querySelector('.range').addEventListener('input', (e)=>{
3
cont.innerHTML = `Value: ${e.target.value}`
4
})
Console errors: 0