jquery.qrcode.js is a standalone jQuery plugin that generates QR codes. It lets you easily add QR codes to your website. It doesn't rely on external services which can go offline or add loading time. Also, it weighs less than 4 KB after minify + gzip, and it doesn't download any images.
This library is based on qrcode-generator, a library that generates QR codes in various programming languages. jquery.qrcode.js acts as a wrapper for this library, letting you easily include it in your own code.
First, include jquery.qrcode.js in your website with a script tag:
<script type="text/javascript" src="jquery.qrcode.min.js"></script>
Second, create a container to hold the generated QR code:
<div id="qrcode"></div>
To finish, add the QR code to the container using:
jquery('#qrcode').qrcode("this plugin is great");
See a finished example here.
You can also set the width and height of the generated QR code:
jquery('#qrcode').qrcode({width: 64,height: 64,text: "size doesn't matter"});
jquery.qrcode.js is available on GitHub under the MIT license. If you find bugs, please open issues on GitHub. Feel free to fork, modify, and have fun with the library :)