Open ghost opened 6 years ago
I am trying to get the value of any of the sliders that change. I am using the following code:
$('.js-hiderange').each(function() { $(this).on('change',function (ev) { alert($(this).value); }); });
But I get undefined value. How can I fix this without using a specific ID for every slider?
I am trying to get the value of any of the sliders that change. I am using the following code:
$('.js-hiderange').each(function() { $(this).on('change',function (ev) { alert($(this).value); }); });
But I get undefined value. How can I fix this without using a specific ID for every slider?