‹‹ homejQuery Simple Half-Star Rating Plugin

from Ritesh Agrawal:

This is a jQuery plugin for star rating systems. The initial inspiration for this script came from Wil Stuckey's star rating system. But the original script requires too much coding. Also it does not have provision for developing a star system (such as GMail, where you star or un-star an email). I have modified the original script to make it simpler for user to develop a star rating system. Check the demo below — hover and click on stars to change their state

I added the option to have half-star increments.



$('#star1').rating('www.url.php', {maxvalue:1});
$('#star2').rating('www.url.php', {maxvalue:1, curvalue:1});
$('#rate1').rating('www.url.php', {maxvalue:5, increment:.5});
$('#rate2').rating('www.url.php', {maxvalue:5, curvalue:3});

As you might have noticed, for a single star the script works like a star/unstar. For two or more stars, it works as a rating system. The value can be received at the server end via post variable named "rating".