qrcodejs icon indicating copy to clipboard operation
qrcodejs copied to clipboard

clear() is not working

Open momoxiaoqing opened this issue 6 years ago • 2 comments

momoxiaoqing avatar Dec 06 '19 06:12 momoxiaoqing

Same here using IE11 and pure JS. tried method shown in issue 11 [https://github.com/davidshimjs/qrcodejs/issues/111] with no luck.

Have to hide the IMG element instead using document.getElementById("qrcode").childNodes[1].setAttribute("style", "display:none;");

lauamos1116 avatar Sep 29 '20 17:09 lauamos1116

Itried above and a thousand other methods, nothing worked until

$('#qrcode canvas').remove()

..somehwere else mentions $('#qrcode canvas').clear() (didnt work) , i tried setAttribute none, hide, etc...ugh what a two hour nightmare. Best of luck

Note its jquery so have to have it included!

rocket-pig avatar Sep 07 '23 15:09 rocket-pig