I have a Range Slider I want to put it in variables with each change and then use it. In my code this is undefined
My html code is
<input id="length" class="border-0" type="range" value="10" min="max="100"/>
and my jquery code is
$('#length').change(function () {
length = $(this).val();
console.log($(this).val())
});
console.log(length)
but it return undefiend