Example 1 (Basic example without options) :
$(document).ready(function(){
$(".bacic").jRating();
});
Example 2 (type : small - average 10 - id 2 - 40 stars) :
$(document).ready(function(){
$(".exemple2").jRating({
type:\'small\', \'small\', \'big\'
length : 40,
decimalLength : 1
});
});
Example 3 (step : true - average 18 - id 3 - 15 stars) :
$(document).ready(function(){
$(".exemple3").jRating({
step:true,
length : 20,
decimalLength:0
});
});
Example 4 (With methods on Success& on Error) :
$(document).ready(function(){
$(".exemple5").jRating({
length:10,
decimalLength:1,
onSuccess : function(){
alert(\'Hello :)\');
},
onError : function(){
alert(\'Blogsite Designs\');
}
});
});
Example 5 (Info ranking disabled) :
$(document).ready(function(){
$(".exemple6").jRating({
length:10,
decimalLength:1,
showRateInfo:false
});
});
The data is sent to the server: :
The server's response: