jQuery(function ($) { const clipboard = new ClipboardJS('.toClip'); clipboard.on('success', function (e) { let html = `✔ copiĆ©`; $(e.trigger).append(html); setTimeout(() => { $(e.trigger).children('.copierOk').remove(); e.clearSelection(); }, 1000); }); });