MyjQueryPlugins is powered by ALPIXEL Agency
MyjqueryPlugins - 2013 - All Rights Reserved
<!-- HTML CODE -->
<div class="basic" data-average="12" data-id="1"></div>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$(".basic").jRating();
});
</script>
<!-- HTML CODE -->
<div class="exemple2" data-average="10" data-id="2"></div>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$(".exemple2").jRating({
type:'small', // type of the rate.. can be set to 'small' or 'big'
length : 40, // nb of stars
decimalLength : 1 // number of decimal in the rate
});
});
</script>
<!-- HTML CODE -->
<div class="exemple3" data-average="18" data-id="3"></div>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$(".exemple3").jRating({
step:true,
length : 20, // nb of stars
decimalLength:0 // number of decimal in the rate
});
});
</script>
<!-- HTML CODE -->
<div class="exemple4" data-average="10" data-id="4"></div>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$(".exemple4").jRating({
isDisabled : true
});
});
</script>
<!-- HTML CODE -->
<div class="exemple5" data-average="10" data-id="5"></div>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$(".exemple5").jRating({
length:10,
decimalLength:1,
onSuccess : function(){
alert('Success : your rate has been saved :)');
},
onError : function(){
alert('Error : please retry');
}
});
});
</script>
<!-- HTML CODE -->
<div class="exemple6" data-average="10" data-id="6"></div>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$(".exemple6").jRating({
onSuccess : function(){
jSuccess('Success : your rate has been saved :)',{
HorizontalPosition:'center',
VerticalPosition:'top'
});
},
onError : function(){
jError('Error : please retry');
}
});
});
</script>
<!-- HTML CODE -->
<div class="exemple7" data-average="12" data-id="7"></div>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$(".exemple7").jRating({
showRateInfo:false
});
});
</script>
<!-- HTML CODE -->
<div class="exemple8" data-average="10" data-id="8"></div>
<!-- JS to add -->
<script type="text/javascript">
$(document).ready(function(){
$(".exemple8").jRating({
step:true,
length : 20,
canRateAgain : true,
nbRates : 3
});
});
</script>