jQuery star-rating plugin
![](https://raw.githubusercontent.com/ThomasDev-de/star-rating/main/demo/star-rating.png)
let DEFAULTS = {
wrapperClasses: 'p-5 shadow',
starIconEmpty: 'fa fa-star-o',
starIconFull:'fa fa-star',
starColorEmpty: 'lightgray',
starColorFull:'#FFC107',
starsSize: 4, // em
stars: 5,
showInfo:true,
titles: ["Sehr schlecht", "Schlecht", "Mittel", "Gut", "Sehr gut!"],
inputName: 'rating'
};
// trigger when star is clicked
$('.rating').on('change', function (e, stars, index) {
});
<div class="rating"></div>
$('.rating').starRating();
$(document).on('change', '.rating', function (e, stars, index) {
alert(`Thx for ${stars} stars!`);
});