jeromeetienne / jquery-qrcode

qrcode generation standalone (doesn't depend on external services)
http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
MIT License
4.84k stars 2.51k forks source link

Printing QR #99

Open sooriyaoli opened 7 years ago

sooriyaoli commented 7 years ago

I have called the generated QR in a Modal Box with other text values. I am unable to print the QR from the modal box with the other values .

Modal Section:

Calling Print:

$('#print').click(function(){

    var id = $('#user_id').val();

    $.ajax({
        url:'updatecount.php',
        type:'POST',
        data:{id:id},
        success:function(data){

        }

    });

    var original = $('body').html();
    var printcontent = $('#print_section').html();
    $('body').css('margin-top','45%');
    $('body').html(printcontent);
    window.print();
    window.location.href="index.html";

});