Get started with jquery.qrcode CDN

MIT licensed

JQuery QRCode: Lightweight plugin generating dynamic QR codes with QRCode.js library.

Tags:
  • jquery
  • qrcode
  • qr

Stable version

Copied!

How to start using jquery.qrcode CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with jquery.qrcode CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js">
    <script src="https://cdn.cdnhub.io/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
    <style>
        #qrcode { width: 200px; height: 200px; }
    </style>
</head>
<body>
    <button id="generate">Generate QR Code</button>
    <div id="qrcode"></div>

    <script>
        $(document).ready(function() {
            $('#generate').click(function() {
                $('#qrcode').qrcode({
                    value: "https://www.example.com",
                    width: 200,
                    height: 200
                });
            });
        });
    </script>
</body>
</html>
Copied!

All versions