1-5 star rating, in jQuery.
1-5 (or 1-
n) star rating in < 75 lines of code.
$('.starrr').starrr()
$('.starrr').starrr({ rating: 4 })
$('.starrr').starrr({ max: 10 })
$('.starrr').starrr({ readOnly: true })
$('.starrr').starrr({ change: function(e, value){ alert('new rating is ' + value) } })
Or if you prefer events:
$('.starrr').on('starrr:change', function(e, value){ alert('new rating is ' + value) })
npm install
npm install -g grunt-cli
src/
gruntto compile them
MIT