I have a rating script which displays ratings as numbers: 1, 1.5, 2, 2.5 etc up to 10.
I want to display star images now instead of numbers, but up to 5 instead of 10.
This is the code I have which outputs the numbers:
if ( $(relData).attr("responses") > 10 ) overallRating = Ratings.RoundToHalf( ( convenience + quality + rebook )/3 );
Alternatively, is there a way I can replace the numbers with images, for example if the rating is 5.5 i can replace it with <img src=“5star.jpg” /> ?