I currently have the following HTML layout :
<span class="spr-starratings spr-review-header-starratings" style="margin-left: 20px;">
<i class="spr-icon spr-icon-star"></i>
<i class="spr-icon spr-icon-star"></i>
<i class="spr-icon spr-icon-star"></i>
<i class="spr-icon spr-icon-star"></i>
<i class="spr-icon spr-icon-star"></i>
</span>
For instance; if 4 is <i>frozen, I want the first 3 plus 1 to dynamically add CSS color: #f2d253;, and then, removing the cursor from this star, I want it to be reset styles.
I would like to do this using jQuery if possible?
Any point in the direction will be appreciated; example will be highly appreciated
source
share