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";
});
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(){