Copy one specific item to clipboard with JavaScript rendered content on a large scale

Viewed 26

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?

Emojis

0 Answers
Related