http://plugins.krajee.com/star-rating#usage
<script>
$(document).on('ready', function () {
$('.kv-gly-star').rating({
containerClass: 'is-star'
});
$('.kv-gly-heart').rating({
containerClass: 'is-heart',
defaultCaption: '{rating} hearts',
starCaptions: function (rating) {
return rating == 1 ? 'One heart' : rating + ' hearts';
},
filledStar: '',
emptyStar: ''
});
$('.kv-fa').rating({
theme: 'krajee-fa',
filledStar: '',
emptyStar: ''
});
$('.kv-fa-heart').rating({
defaultCaption: '{rating} Puan',
starCaptions: function (rating) {
return rating == 1 ? '1 Puan' : rating + ' Puan';
},
theme: 'krajee-fa',
filledStar: '',
emptyStar: ''
});
$('.rating,.kv-gly-star,.kv-gly-heart,.kv-uni-star,.kv-uni-rook,.kv-fa,.kv-fa-heart,.kv-svg,.kv-svg-heart').on(
'change', function () {
console.log('Rating selected: ' + $(this).val());
});
});
</script>