Phasellus at scelerisque eros, elementum congue leo.
Rating : Not ratings given.Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Rating : Not ratings given.Ut ultrices nibh non orci sollicitudin.
Rating : Not ratings given.Sed sed magna consequat, cursus felis.
Rating : Not ratings given.Etiam vulputate condimentum facilisis.
Rating : Not ratings given.Aliquam nec tortor porttitor, mollis quam sit amet.
Rating : Not ratings given.Vivamus lacinia augue id ipsum luctus molestie.
Rating : Not ratings given.Minimal, light-weight jQuery ratings.
jQuery Bar Rating Plugin works by transforming a standard select field into a rating widget. The rating widget can be flexibly styled with CSS. Take a look at a few examples.
Get the plugin from GitHub or install with Bower or NPM:
bower install jquery-bar-rating
npm install jquery-bar-rating
Create a select field:
<select id="example">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
If you would like to use one of the provided themes include the theme in the head section of the page. Adjust the path to the CSS file and make sure it points to the correct theme file. In this example we are also pulling Font Awesome icons from a CDN.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
<link rel="stylesheet" href="fontawesome-stars.css">
Include and call the plugin (after jQuery v1.7.2+)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="jquery.barrating.min.js"></script>
<script type="text/javascript">
$(function() {
$('#example').barrating({
theme: 'fontawesome-stars'
});
});
</script>