Is it possible to pass parameters to a jQuery UI slider
<p>I am trying to build a project that uses jQuery UI slider. It involves surveying people and the users have to tell how sure they are of something and that's where the slider comes in. </p>

<pre><code>    $(function() {
    $( "#slider-range-min1" ).slider({
        range: "min",
        value: 0,
        min: 0,
        max: 100,
        slide: function( event, ui ) {
            jQuery( "#amount1" ).val(ui.value + "%" );
        }
    });
$( "#amount1" ).val($( "#slider-range-min1" ).slider( "value" ) + "%" );
});
</code></pre>

<p>Since one question may have 4-5 answers and each answers has a slider associated with it, for survey of 20 questions there will be too many individual slider functions. I can dynamically populate them but there must be a better way to do this. Like controlling all the slider with one function and simply passing the div id and input id to it.</p>

<p>I tried using class instead of ID, but when I do that the slider just disappears as jQuery Ui seem to attach few of its own class on runtime to the slider.</p>

<p>Thanks </p>
