A repository of over 1000 quality jQuery plugins

jQuery jQuery Voter

jQuery Voter is a jQuery Rate & Vote plugin.

Created by Eimg

A simple jQuery plugin to attach up/down voting facility to selected HTML elements.

Not what you're looking for? Click here to view more Rate & Vote jQuery plugins

jQuery Voter Plugin

A simple jQuery plugins to attach up/down voting functionality to selected HTML element.

Basic Usage

$(selectors).attachVoter({ options });

With Up/Down Vote Callbacks

    $(selectors).attachVoter({
        "doUpVote": function(id, value) {
            //
        },
        "doDownVote": function(id, value) {
            //
        },
        "undoUpVote": function(id, value) {
            //
        },
        "undoDownVote": function(id, value) {
            //
        }
    });

Options

  • "voterClass" : "voter",
  • "wrapperClass" : "voter-wrapper",
  • "upVoteClass" : "up-vote",
  • "upVoteTitle" : "Vote Up",
  • "voteCountClass" : "vote-count",
  • "downVoteClass" : "down-vote",
  • "downVoteTitle" : "Vote Down",
  • "disabledClass" : "disabled",
  • "undoTitle" : "Click to Undo",
  • "votedClass" : "voted",
  • "plusClass" : "good",
  • "minusClass" : "bad",
  • "upVoteChar" : "▲",
  • "downVoteChar" : "▼",
  • "useCookie" : true,
  • "doUpVote" : function() {},
  • "doDownVote" : function() {},
  • "undoUpVote" : function() {},
  • "undoDownVote" : function() {}

Release Note



You might also like these other Rate & Vote jQuery Plugins

  • jQuery-Rate

    A simple jQuery plugin for creating graphical ratings

  • rateit.js

    Rating plugin for jQuery. Fast, Progressive enhancement, touch support, customizable (just swap out the images, or change some CSS), Unob...

  • Meteor jQuery Rateit

    RateIt - a modern, mobile-friendly, jQuery (star) rating plugin, repackaged for Meteor