I am currently using this code for QR code generator from one input field:(HTML and Javascript) I want to have multiple input, like guest name, and event title, event date, location to be as one part to form or generate QR code. Note that event title and date is going to be filled one time, while guest name is going to be multiple, as the goal is to have unique QR code per each guest.
So the final result should be event title, date and location as well as QR code are going to be embedded as 1 photo. Is that possible?
Thanks -Tarneem
var qrcode = new QRCode("qrcode");
function makeCode () {
var elText = document.getElementById("text");
if (!elText.value) {
elText.focus();
return;
}
qrcode.makeCode(elText.value);
}
makeCode();
$("#text").
on("blur", function () {
makeCode();
}).
on("keydown", function (e) {
if (e.keyCode == 13) {
makeCode();
}
});
<input id="text" type="text" placeholder="Enter guest name" class="contactField" /><br />
<div id="qrcode" ></div>