Ntz RateThis jQuery Plugin
10 MaySome weeks ago i needed a jQuery (yes, i’m a jQuery addicted!) plugin for basic star-rating system with ajax call. Because i wanted a minimum html markup, i start to wrote my own plugin, with a handy way to implement. Just drop this where you want to display stars:
<span class="rateThis" title="current=2.5;href=vote.php;id=1"></span>
Then call ntzRateThis on document load:
1 2 3 | $(document).ready(function(){ $('.rateThis').ntzRateThis(); }); |
Easy, isn’t? You need to specify (in title):
current - current rate (accept float);
href - link for backend rating script (this script will return final rate after vote and also verify that is only one vote per day);
id - id of the element (for example, id of article that you want to rate).
That’s all. You still need to include css and javascript files (is in the ZIP file)
You can see a demo of this plugin here (you have a demo for rating only, backend script sends only random numbers, so the rate won’t be real!) and you can download from here.

A good plugin, I used it and I’ll use it in further applications.