Winikol's Forum Posts

  • 1 posts
  • You do not have permission to view this post

  • 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.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • 1 posts