Bootstrap CSS Classes

Bootstrap CSS class .is-valid

    <form class="row g-3">
        <div class="col-md-4">
            <label for="validationServer01" class="form-label">First name</label>
            <input type="text" class="form-control is-valid" id="validationServer01" value="John" required>
            <div class="valid-feedback">
                Looks good!
            </div>
        </div>
        <div class="col-md-4">
            <label for="validationServer02" class="form-label">Last name</label>
            <input type="text" class="form-control is-valid" id="validationServer02" value="Smith" required>
            <div class="valid-feedback">
                Looks good!
            </div>
        </div>
    </form>

Preview

Are you tired of writing HTML by hand?

More Bootstrap CSS classes in Forms category

© 2024 Shuffle. All rights reserved.