[Solved] How to make a slider with that functionality (html, css, js) [closed]
a simple function to do some actions base on input value can be like this : document.getElementById(“myRange”).addEventListener(“change”, function (e) { let value = parseInt(this.value); let resultElm = document.getElementById(“result”); switch (true) { case 0 < value && value <= 20: resultElm.innerHTML = “:|”; break; case 20 < value && value <= 40: resultElm.innerHTML = “:)”; break; … Read more