I have generated a QR code using jQuery plugin. The QR code is rendered in a div on my webpage. I tried to print the webpage but the qrcode is not printed in the paper.
My code for jQuery for QR code generation:
$(document).ready(function () {
$('#add1').click(function () {
$("#table1").remove();
var string2 = document.getElementById("textinput").value;
jQuery('#qrcodeTable').qrcode({
render: "table",
text: string2
});
});
});
In view:
@using (Html.BeginForm())
{
@Html.TextBoxFor(m => m.encode, new { id = "textinput", style = display:none;" }
}
<div id="qrcodeTable">
</div>
EDIT :
The qrcode doesnot gets printed from the webpage. Any suggestions.