Need help with starrr?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

dobtco
213 Stars 107 Forks 25 Commits 15 Opened issues

Description

1-5 star rating, in jQuery.

Services available

!
?

Need anything else?

Contributors list

# 55,754
CSS
Shell
Bootstr...
Less
21 commits
# 567,164
HTML
CSS
1 commit

starrr

1-5 (or 1-

n
) star rating in < 75 lines of code.

Requirements

  • jQuery

Usage

Create the stars

$('.starrr').starrr()

With an existing rating

$('.starrr').starrr({
  rating: 4
})

With more than 5 stars

$('.starrr').starrr({
  max: 10
})

Read-only

$('.starrr').starrr({
  readOnly: true
})

Do something with the rating...

$('.starrr').starrr({
  change: function(e, value){
    alert('new rating is ' + value)
  }
})

Or if you prefer events:

$('.starrr').on('starrr:change', function(e, value){
  alert('new rating is ' + value)
})

Developing

  • npm install
  • npm install -g grunt-cli
  • Make changes in
    src/
  • Run
    grunt
    to compile them

License

MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.