How to add the tooltip to the element by jquery or javascript?

i want to add a tip----click to copy to the Copy To Clipboard… button like this site( the yellow part with a Scissor. but when i using jquery to add a tip to it. it doesn’t work. why? i test it on this

  function () {
    $(this).append($('<span class="tip">click to copy</span>'));
  function () {

i have added the jquery library.

the reason the tooltip can’t work maybe the copied text is wrapped by the flash, but this site ( can do. i don’t know why?