Get started with bootstrap-toggle CDN

MIT licensed

JQuery plugin: Bootstrap-toggle. Adds toggle functionality to checks/radios, styled with Bootstrap.

Tags:
  • bootstrap
  • toggle
  • bootstrap-toggle
  • switch
  • bootstrap-switch

Stable version

Copied!

How to start using bootstrap-toggle CDN


<!DOCTYPE html>
<html>
<head>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.cdnhub.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.6.0.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
    <script src="https://cdn.cdnhub.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
    <title>Get started with bootstrap-toggle CDN - cdnhub.io</title>
</head>
<body>
    <div class="container mt-5">
        <h1 class="text-center mb-5">Bootstrap Toggle Example</h1>
        <div class="row">
            <div class="col-md-6 offset-md-3">
                <div class="form-check">
                    <input class="form-check-input" type="checkbox" id="toggleCheckbox" data-toggle="toggle" data-on="On" data-off="Off" data-width="100">
                    <label class="form-check-label" for="toggleCheckbox">
                        Toggle me
                    </label>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions