Skip to content

Instantly share code, notes, and snippets.

@marcheidemann
Created November 6, 2012 15:58
Show Gist options
  • Save marcheidemann/4025641 to your computer and use it in GitHub Desktop.
Save marcheidemann/4025641 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function($) {
$('#example-').ratings(5).bind('ratingchanged', function(event, data) {
$('#example-rating-').text(data.rating);
});
$("#example-").each(function(index) {
index = (index+1);
var boxId = "#example-" + (index);
$(this).attr("id", boxId);
$(this).next().attr("id", boxId);
//...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment