Skip to content

nowackipawel/jquery-star-rating-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-star-rating-plugin

Rating plugin jQuery

A simple star rating plugin which uses Googles Materialize Icons.

Demo

A demo can be seen on: http://joost.in/ternet/javascript/jquery-star-rating-plugin, or in the example HTML file.

Requirements

Usage

Add the plugin to your source, call it by using:

$('-your-selector-').addRating();

Options

icon : star | favorite

Star is a star, favorite is a heart

max : 5

How many stars you want / max rating.

fieldName : 'rating'

Specific name for the hidden input field.

fieldId : 'rating'

ID attribute of the hidden input field, so you can retrieve the contents easily.

Override Styles

Change the fill color by overriding the "selected" class in your css.

License

Creative Commons / Free to use or alter - leave the

Creative Commons License
jQuery Star Rating plugin by Joost van Velzen is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at https://github.com/jvv/jquery-star-rating-plugin.

About

Rating plugin jQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.6%
  • HTML 36.4%