I created qr codes using jquery.qrcode and i want to export them
this is the result a table of qr codes but when I export this table using tableToExcel.js ,the excel out empty
var data = [
{ "id":1,"username": "John", "year": 1999},
{ "id":2,"username": "aya", "year": 1999},
{ "id":3,"username": "jojo", "year": 1999},
{"id":4,"username": "kiko", "year": 1999},
]
var out = '<div id="tab"><table class="table" id="codes"><thead><tr><th>name</th></tr></thead><tbody>';
$.each(data, function(key, value) {
out += '<tr ><td id="td' + value['id'] + '"></td></tr>';
});
out += '</table ></div>';
$("#codes").html(out);
$.each(data, function(key, value) {
$("#td" + value['id'] + "").qrcode({
width: 64,
height: 64,
text: value['username']
})
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js" integrity="sha512-NFUcDlm4V+a2sjPX7gREIXgCSFja9cHtKPOL1zj6QhnE0vcY695MODehqkaGYTLyL2wxe/wtr4Z49SvqXq12UQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<div id="codes"></div>