Can anyone suggest a simple JQuery five star rating script that is easy to setup. I just need a single instance on a single page. I don't care if it writes to a file or mysql database to calculate rating average.
It should display the number of votes and the calculated average. It should also check if the person has already rated or should not allow more than 2 ratings at a time. Should have cookies or sessions to prevent multiple ratings or some other mechanism.
I don't care if its free or cost money but the licensing should allow me to use it in commercial applications.
Appreciate all suggestions! Thank you!
P.S. I spent a couple of day trying different scripts online but have not found anything that was actually complete.
I've packaged a star rating plugin for meteor, so I've evaluated all the 11 jQuery rating plugins listed here, and the winner is, by far, RateIt.
RateIt can optionally use the HTML5 range input element - perfect for this purpose. No lame
<li>
elements or radio buttons.The others are clearly lesser solutions:
Star Rating, the first answer
Raty, the second answer
https://github.com/ripter/jquery.rating
Anyway, none of these mentions browser compatibility or touch support. RateIt does, and it also explains clearly why it's better and different from the others:
Oh, and the last update? Yesterday.
This looks nice:
http://www.fyneworks.com/jquery/star-rating/
But you will need more of a backend to make sure people can't vote twice and to get an average of number of votes. The votes need to be stored somewhere (or at leas the current average) and whether or not a user voted already should be stored on the server too.
This link can tell you about some of the server-side stuff that needs to be done: http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/