Show tooltip for span after click on – Jquery
I want to copy text o span in clipboard, then show tooltip for it. I use this code. spans = document.querySelectorAll(".copy"); for (const span of spans) { span.onclick = function() { document.execCommand("copy"); } span.addEventListener("copy", function (event) { event.preventDefault(); if (event.clipboardData)…