jquery-rating
a simple rating plugin with pure CSS implement
Usage
see DEMO
<!-- div group --> <div class="group1"> <!-- rattings--> <div class="jr-ratenode jr-nomal"></div> <div class="jr-ratenode jr-nomal "></div> <div class="jr-ratenode jr-nomal "></div> <div class="jr-ratenode jr-nomal "></div> <div class="jr-ratenode jr-nomal "></div> </div> <div > <p id="info" >0</p> </div>
//start it $('.group1').start(); //or with a callback $('.group1').start(function(cur){ console.log(cur); $('#info').text(cur); }); //or with init rating $('.group1').start(2,function(cur){ console.log(cur); $('#info').text(cur); }); //when you want to get the current rating $('.group1').getCurrentRating()