I am trying to emulate the behavior seen on github and the bootstrap site, where the the tooltip on the zero-clipboard button changes after copying from something like "Copy to Clipboard" to "Copied". Both sites seem to use an element called data-copied-hint to do this, but it does not work for me. I have also tried modifying the title element after copying using jquery, but that only changes the tooltip the next time you hover over - the tooltip is still not shown right after the click. Any ideas what I need to do?
Here is my code (also on Plunker at http://plnkr.co/edit/HTXl8Yjz3Wp9iOL5LKr7)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.1.6/ZeroClipboard.js"></script>
<button id="myclippy" data-clipboard-text="hello world" title="click to copy" data-copied-hint="you copied the text">hello</button>
<input type="text" />
<script type="text/javascript">
var button = document.getElementById("myclippy");
var client = new ZeroClipboard(button);
</script>
</body>
</html>