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

jStars is an ultra-small jQuery plugin which displays customizable star ratings on products, articles, posts, services, shops, etc.

Rating star-rating

Documentation

jStars

jStars is a self-contained jQuery plugin for displaying star ratings. While there are many rating plugins available, most are heavy, complex, and require additional CSS/image files. The purpose of this plugin is to provide a simple, self-contained way to display star ratings on your website without all the extra baggage.

Getting Started

Add jstars.min.js to your project. That's it!

Prerequisites

jQuery (tested with 3.3.1)

Examples

Basic Usage

Basic Usage

<div class="jstars" data-value="4.0"></div>

Advanced Usage

Advanced Usage

<div class="jstars" data-value="4.2" data-total-stars="7" data-color="#22D118" data-empty-color="black" data-size="30px"></div>

License

This project is licensed under the MIT License - see LICENSE file for details.


You May Also Like