Did you give your switches the class name auto-submit-star ?
<input type="radio" name="whatever" class="auto-submit-star" />
$('.auto-submit-star') selects all switches with the class auto-submit-star , and then sets up the rating plugin.
On the other hand, it seems that you can do this before the DOM ready . If you do not know what it is:
jQuery(document).ready(function() { $('.auto-submit-star').rating({ callback: function(value, link){ alert(value); } }); });
source share