I'm using clipboard.js to copy some text from a textarea
, and that's working fine, but I want to show a tooltip saying "Copied!" if it was successfully copied like they do in the example given on their website.
Here's an example of it working without showing a tooltip: https://jsfiddle.net/5j50jnhj/