In this article, we will show you Bootstrap Rating Example. This article will give you simple example of Bootstrap Rating Example.
<!DOCTYPE html> <html> <head> <title>Bootstrap rating example</title> <link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" rel="stylesheet"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-star-rating/4.0.2/css/star-rating.min.css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-star-rating/4.0.2/js/star-rating.min.js"></script> </head> <body> <div class="container"> <h2>Bootstrap rating example</h2> <br/> <label for="input-1" class="control-label">Give a rating for Java:</label> <input id="input-1" name="input-1" class="rating rating-loading" data-min="0" data-max="5" data-step="0.1" value="2"> <br/> <label for="input-2" class="control-label">Give a rating for Laravel:</label> <input id="input-2" name="input-2" class="rating rating-loading" data-min="0" data-max="5" data-step="0.1" value="4"> <br/> <label for="input-3" class="control-label">Give a rating for PHP:</label> <input id="input-3" name="input-3" class="rating rating-loading" data-min="0" data-max="5" data-step="0.1" value="5"> </div> <script> $("#input-id").rating(); </script> </body> </html>