Get started with bootstrap-rating-input CDN

MIT licensed

Bootstrap-rating-input is a library that allows users to rate items with stars in Bootstrap.

Tags:
  • bootstrap
  • rating
  • input

Stable version

Copied!

How to start using bootstrap-rating-input CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with bootstrap-rating-input CDN - cdnhub.io</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.cdnhub.io/bootstrap-rating-input/0.4.0/bootstrap-rating-input.min.css">
</head>
<body>
    <div class="container mt-5">
        <h1 class="text-center mb-5">Bootstrap Rating Input Example</h1>
        <div class="row">
            <div class="col-md-6 offset-md-3">
                <label for="ratingInput" class="form-label">Rate this example:</label>
                <input type="number" id="ratingInput" class="form-control rating-input" min="1" max="5" step="0.1" value="3">
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
    <script src="https://cdn.cdnhub.io/bootstrap-rating-input/0.4.0/bootstrap-rating-input.min.js"></script>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const ratingInput = new bootstrap.RatingInput.BootstrapRatingInput('#ratingInput');
        });
    </script>
</body>
</html>
Copied!
Copied!

All versions