Jquery Star Rating

Jquery Star Rating

Hi!

I am trying to use Jquery Star rating plugin, but it seems hover label function is not working for me. Anyone have an idea why not?
       
  1.         <script>
  2. $(function(){
  3.  $('.star').rating({
  4.   focus: function(value, link){
  5.     // 'this' is the hidden form element holding the current value
  6.     // 'value' is the value selected
  7.     // 'element' points to the link element that received the click.
  8.     var tip = $('#hover-test');
  9.     tip[0].data = tip[0].data || tip.html();
  10.     tip.html(link.title || 'value: '+value);
  11.   },
  12.   blur: function(value, link){
  13.     var tip = $('#hover-test');
  14.     $('#hover-test').html(tip[0].data || '');
  15.   }
  16.  });
  17. });
  18. </script>
  19.         <input type="radio" name="rating" value="1" style="margin: 0;" class="star"  title="Very poor"/>
  20.         &nbsp;
  21.         <input type="radio" name="rating" value="2" style="margin: 0;" class="star" title="Very poor"/>
  22.         &nbsp;
  23.         <input type="radio" name="rating" value="3" style="margin: 0;" class="star"/>
  24.         &nbsp;
  25.         <input type="radio" name="rating" value="4" style="margin: 0;" class="star"/>
  26.         &nbsp;
  27.         <input type="radio" name="rating" value="5" style="margin: 0;" class="star"/>
  28.         <span id="hover-test" style="margin:0 0 0 20px;">Hover tips will appear in here</span> </span><br />