Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A simple yet powerful JQuery star rating plugin for Bootstrap with fractional rating support.
Bootstrap Star Rating is a jQuery plugin that converts any HTML input into an interactive star rating control for Bootstrap 5.x, 4.x, or 3.x, featuring fractional star fill, RTL input support, theming, and a suite of JavaScript events.
Bootstrap Star Rating is an open-source, BSD-3-Clause licensed jQuery plugin created by Kartik Visweswaran, developer of the Krajee plugin family. It accepts any HTML input element (text, number, or other) and renders it as a star rating widget complete with a caption and clear button. The plugin relies on pure CSS3 and scalable vector icons for the stars, eliminating image sprites. It is distributed via Bower, Composer, and manual download from GitHub, and the repository has over 1,000 stars.
krajee-svg (default), krajee-uni, krajee-fas, krajee-fa, and krajee-gly, plus custom theme overrides.rating.change, rating.clear, rating.reset, rating.refresh, rating.hover, and rating.hoverleave for advanced integrations.displayOnly property to show a read-only rating.Bootstrap Star Rating is built for web developers who need a polished, feature-rich rating widget without hand-coding star interactions.
rating class to an input.displayOnly mode to render a read-only star rating in dashboards or listings.Include the provided CSS and JS files, add an input with the rating class (or call $(selector).rating(options)), and pass options via HTML5 data attributes or the plugin's JavaScript API. The plugin hides the original input and renders the star markup, keeping the input value synchronized with user interaction.
Yes, it is open-source under the BSD-3-Clause License and available for free via GitHub, Bower, and Composer.
The plugin supports Bootstrap 5.x, 4.x, and 3.x styles, with Bootstrap 3.x glyphicons available as a theme option.
Set the step option to a value like 0.5. The plugin renders partial fill using CSS and SVG, so half-star ratings work out of the box.
Yes, the filledStar and emptyStar properties allow custom markup, and themes let you use Font Awesome or unicode symbols.
Yes, since version 3.1.0, the plugin supports slide-and-drag interaction for touch devices.
