Click to copy string interaction
This is a string you can copy . Hover over it to see the interaction. Click on the string to copy it to your clipboard.
And here is another string you can copy . Very nice.
Click this one to copy a data-attribute itinerary string added to the HTML tag.
Here's an example of the HTML being used:
<a href="" class="
copy-click
"
data-copy-string
="#ITN12345"
data-tooltip-text
="Click to copy"
data-tooltip-text-copied
="✔ Copied to clipboard">
Text to display
</a>
Original design concept by
@JustinDanks
.