I rendered a lot of spans, which contain emojis with JavaScript through an API. I want that if you click one span/emoji, it copies to clipboard. How can I accomplish this? Do I need to give them all an ID?
I rendered a lot of spans, which contain emojis with JavaScript through an API. I want that if you click one span/emoji, it copies to clipboard. How can I accomplish this? Do I need to give them all an ID?