Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 341 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 341 Bytes

starrr

1-5 (or 1-*) star rating, in jQuery.

Usage

Create the stars

<div class='starrr'></div>

With an existing rating

<div class='starrr' data-rating='4'></div>

Listen for events

$('.starrr').on('starrr:change', function(e, value){
  alert('new rating is ' + value);
});

License

MIT