jQuery Star Rating Plugin | score.js

Score.js is a simple and fully customizable jQuery star rating plugin that uses a Unicode entity or Font Awesome Icon Font for rating icons.

simple jquery star rating, bootstrap star rating input, dynamic star rating jquery, star rating jquery source code, half star rating jquery, star rating js


  • Generates HTML lists or extension elements for the star rating control form.
  • Any number of star ratings is allowed.
  • Vertical and horizontal layouts.
  • Custom sizes and colors.
  • Callback functions.
  • Easy to use browser.

How to make use of it:

1. Load the jQuery library and jQuery Score.js JS & CSS files into the HTML page.

<link rel="stylesheet" href="css/jQuery.score.css">
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="js/jQuery.score.js"></script>

2. Download Font Awesome if you want to use Font Awesome icons for rating icons.

<link rel="stylesheet" href="font-awesome.min.css">

3. Create a DIV container (or unordered HTML list) to control the star rating.

<div class="demo-default"></div> 
<!-- Or -->
<ul class="demo-default"></ul>

4. Initialize the plugin.


5. Default options for the plugin.


// score range
number      : 5,

// symbol size
size        : 26,           

// symbole color
color       : 'black', 

// initila score
score       : undefined, 

// vertical layout
vertical    : false,         

// replace default hints
// e.g. ['bad', 'poor', 'regular', 'good', 'gorgeous']
hints       : undefined,  

// executed on click.
click       : undefined, 

// executed on mouseover.
mouseover   : undefined, 

// executed on mouseout.
mouseout    : undefined,  

// read only mode
readOnly    : false,

// uses font awesome icons
fontAwesome : false, 

// debug mode
debug       : false  


5. Plugin API.

// set a score
$('.score').score('score', score);

// get a score

// remove current score

// destroy the plugin

simple customizable jquery rating, score.js Plugin/Github

See Demo And Download

Official Website(haozki): Click Here

This superior jQuery/javascript plugin is developed by haozki. For extra advanced usage, please go to the official website.

Related Posts


Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…


Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…


How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…


A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…


Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…