javascript get html slider value
var x = document.getElementById("myRange").value
javascript get html slider value
var x = document.getElementById("myRange").value
range slider in html
<input type="range" list="tickmarks">
<datalist id="tickmarks">
<option value="0" label="0%"></option>
<option value="10"></option>
<option value="20"></option>
<option value="30"></option>
<option value="40"></option>
<option value="50" label="50%"></option>
<option value="60"></option>
<option value="70"></option>
<option value="80"></option>
<option value="90"></option>
<option value="100" label="100%"></option>
</datalist>
how to get range slider value in javascript
// pure javascript
var slider = document.getElementByID('your_slider_id');
console.log(slider.value);
// jQuery
jQuery('#your_slider_id').val();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us