Get started with bootstrap-checkbox CDN

MIT licensed

Bootstraps checkbox component: toggles labels with custom styles.

Tags:
  • bootstrap
  • checkbox
  • jquery-plugin
  • switch

Stable version

Copied!

How to start using bootstrap-checkbox CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with bootstrap-checkbox CDN - cdnhub.io</title>
    <!-- Add Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Add Bootstrap Checkbox CSS -->
    <link rel="stylesheet" href="https://cdn.cdnhub.io/bootstrap-checkbox/2.0.0/css/bootstrap-checkbox.min.css">
</head>
<body>
    <div class="container mt-5">
        <h1 class="text-center mb-5">Bootstrap Checkbox Example</h1>
        <form>
            <div class="form-check">
                <input class="form-check-input" type="checkbox" id="checkbox1" value="option1" checked>
                <label class="form-check-label" for="checkbox1">
                    Option 1
                </label>
            </div>
            <div class="form-check">
                <input class="form-check-input" type="checkbox" id="checkbox2" value="option2">
                <label class="form-check-label" for="checkbox2">
                    Option 2
                </label>
            </div>
            <div class="form-check">
                <input class="form-check-input" type="checkbox" id="checkbox3" value="option3" disabled>
                <label class="form-check-label" for="checkbox3">
                    Option 3 (disabled)
                </label>
            </div>
        </form>
    </div>
    <!-- Add Bootstrap Checkbox JS -->
    <script src="https://cdn.cdnhub.io/bootstrap-checkbox/2.0.0/js/bootstrap-checkbox.min.js"></script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions