jQuery Star Rating Plugin

Here is my quick and dirty re-creation of a star rating plugin. This is a fully degradable plugin that creates the Star Rating interface based on a simple form structure. I would love to hear your suggestions on how this could be made better. Feel free to contact me wil[dot]stuckey[at]gmail[dot]com, thanks!

Update: 11-11-06

I recently added support for keyboard navigation and included the IE6 background flicker fix

The Form


<form class="rating" title="Average Rating: 3.4" action="rating.php">
    <label for="r1" class="avg">Rate Me!</label>
    <select id="r1">
        <option value="0">0</option>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
    </select>
    <input type="button" value="Submit Rating">
</form>

Which looks like this without javascript:

The JavaScript

jQuery(function(){
    jQuery('form.rating').rating();
});

The Demo

The Source

Check out the source here:

jQuery Rating Plugin

Comments and feedback welcome.

-Wil