Get started with bootstrap-show-password CDN

MIT licensed

The bootstrap-show-password library is a simple JS add-on for Bootstrap that enables revealing password input text as users click on a corresponding eye icon.

Tags:
  • bootstrap.password
  • show.password
  • hide.password

Stable version

Copied!

How to start using bootstrap-show-password CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with bootstrap-show-password 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-show-password/1.3.0/bootstrap-show-password.min.css">
    <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-show-password/1.3.0/bootstrap-show-password.min.js"></script>
</head>
<body>
    <div class="container mt-5">
        <form>
            <div class="mb-3">
                <label for="exampleInputPassword1" class="form-label">Password</label>
                <input type="password" class="form-control" id="exampleInputPassword1">
                <button type="button" class="btn btn-link position-absolute end-0 top-0 mt-2 me-2" data-bs-toggle="show-password" data-bs-target="#exampleInputPassword1">Show</button>
            </div>
            <div class="mb-3">
                <label for="exampleInputPassword2" class="form-label">Repeat password</label>
                <input type="password" class="form-control" id="exampleInputPassword2">
                <button type="button" class="btn btn-link position-absolute end-0 top-0 mt-2 me-2" data-bs-toggle="show-password" data-bs-target="#exampleInputPassword2">Show</button>
            </div>
        </form>
    </div>
</body>
</html>

All versions