Hello. I've created a range input. How do I set value of it when the value is lower than 0 with JS? That's code I tried, but it doesn't work.
let range = document.getElementsByClassName("range");
if(range.value > 0) {
range.value = 5;
Any ideas?
PS. Sorry for bad grammar but English isn't my main language.