<div id="rating-1"></div>
$('#rating-11').slidy();
<div id="rating-21"></div> <div id="result-21"></div>
$('#rating-21').slidy({ maxval: 24, interval: 1, defaultValue: 8, finishedCallback: function (value) { $('#result-21').html('You selected: ' + value); } });
<div id="rating-22"></div> <div id="result-22"></div> <div id="currentval-22"></div>
$('#rating-22').slidy({ maxval: 12, interval: 1, defaultValue: 4, finishedCallback: function (value) { $('#result-22').html('You selected: ' + value); }, moveCallback: function (value) { $('#currentval-22').html('<strong>' + value + '</strong>'); } });
<div id="rating-31"></div> <div id="result-31"></div>
$('#rating-31').slidy({ theme: { image: 'themes/red.png', width: 161, height: 34 }, maxval: 10, interval: 1, defaultValue: 1, finishedCallback: function (value) { $('#result-31').html('You selected ' + value); } });
Apply slidy on many elements! In this case, we apply slidy to all element with class "rating-32"
<div class="rating-32"></div> <div class="rating-32"></div>
$('.rating-32').slidy({ theme: { image: 'themes/red.png', width: 161, height: 34 }, maxval: 10, interval: 1, defaultValue: 1, finishedCallback: function (value) { $('#currentval-32').html('You selected ' + value + '') }, moveCallback: function (value) { $('#currentval-32').html('<strong>' + value + '</strong>') } });