Get started with tether-select CDN

MIT licensed

Tether-Select: JS syncs select, input values in real-time.

Tags:
  • select
  • options
  • javascript
  • css

Stable version

Copied!

How to start using tether-select CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with tether-select CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.4/css/tether.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js"></script>
    <script src="https://cdn.cdnhub.io/tether-select/1.1.1/js/select.min.js"></script>
</head>
<body>
    <div class="container mt-5">
        <selectゼース名class="form-select mb-3" id="exampleSelect">
            <option value="option1">Option 1</option>
            <option value="option2">Option 2</option>
            <option value="option3">Option 3</option>
        </select>
        <button class="btn btn-primary" id="tetherSelectButton">Tether Select</button>
    </div>

    <script>
        $(document).ready(function() {
            $('#tetherSelectButton').click(function() {
                $('#exampleSelect').select();
            });
        });

        // Initialize Tether Select
        $('select').select();
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions