title: Using zClip on click event of a jQuery UI Dialog button
body: <p>I want to use a jQuery zClip plugin in jQuery UI dialog button, but I don't know how to adapt in this case. Anyone can help me?</p>
  
  <p>Thank you in advance!</p>
  
  <pre><code>    $.ajax({
          url: '/music/lyrics/' + hash,
          success: function (data) {
              data = jQuery.parseJSON(data);
              $('#dialog-modal').html(data.lyrics);
              $('#dialog:ui-dialog').dialog('destroy');
              $('#dialog-modal').dialog({
                  modal: true,
                  resizable: false,
                  title: 'Lyric: ' + data.song,
                  width: 500,
                  height: 400,
                  buttons: {
                      'Copy' : function () {
                           // use zClip to copy $('#dialog-modal').text() here
                       }
                  }
              });
          },
          error: function (msg) {
              alert(msg);
          }
      });
  </code></pre>