Skip to content

Instantly share code, notes, and snippets.

@aimahdi
Created August 15, 2021 06:03
Show Gist options
  • Save aimahdi/f5d41d84144715d96b902523bce3e6f6 to your computer and use it in GitHub Desktop.
Save aimahdi/f5d41d84144715d96b902523bce3e6f6 to your computer and use it in GitHub Desktop.
This code will customize range slider's value and process
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