Created
August 15, 2021 06:03
-
-
Save aimahdi/f5d41d84144715d96b902523bce3e6f6 to your computer and use it in GitHub Desktop.
This code will customize range slider's value and process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let slider = document.getElementById('ff_148_rangeslider'); | |
let text = document.querySelector('.ff_range_value'); | |
let text2 = document.querySelector('.ff_range_value_2'); | |
slider.onchange=function(){ | |
let value = document.getElementById('ff_148_rangeslider').value; | |
value *= 15; | |
text2.innerHTML = '$ '+value; | |
text2.style.display = 'block'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment