🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

StarRating is a really small jQuery rating system plugin which converts a standard HTML unordered list into a star rating control using Font Awesome for rating symbols.

Rating star-rating

Documentation

jquery-starrating

An extremely lightweight star-rating jQuery plugin

Demo

Installation

bower install --save starrating.js

Usage

HTML:

<ul id="starRating"></ul>

Javascript:

(function( $ ) {     $('#starRating').starRating(/* options */) }(jQuery))

Options

Option Description
stars Set the amount of stars that will be generated: Default: 5
current Set the current amount of stars that should be active

Example

$('#starRating').starRating({     stars: 10,     current: 3 }) 

Alternatively you can add data-stars="10" and/or data-current="3" to your element to achieve the same


You May Also Like