Currently, I am utilizing jQuery UI to generate 6 sliders with identical options for a survey.
I am curious if there exists a method to merge all these sliders into one function while maintaining the ability to operate them individually?
If such a solution does exist, would it look something like this:
$('#slider').each(function () {
var $this = $(this).closest('#slider');
$($this).slider(
{
value: 100,
min: 0,
max: 100,
step: 25,
slide: function (event, ui) {
$('#amount').val('$' + ui.value);
}
});
$('#amount').val($('#slider').slider("value"));
Despite my efforts to research similar queries, I have yet to find a resolution. Currently, only the first slider out of the set of 6 is visible.