I have an object with the name of the filter that I want to change the amount within the object when a range slider changed
My HTML code is:
<input id="length" class="border-0" type="range" min="1" max="100"/>
and my jQuery:
function updateData() {
var filter = {};
filter.length = $('#length').val();
return filter;
}
$('#length, #height, #capacity').change(function () {
updateData();
console.log(updateData())
});
Below code is not working and returns a number among 1 - 100