title: jQuery Clipboard Copy
body: <p>I need Clipboard Copy functionality, even i m taking help from  <a href="http://plugins.jquery.com/project/copy" rel="nofollow noreferrer">http://plugins.jquery.com/project/copy</a>  link but it is not working fine.</p>
  
  <pre><code>&lt;li&gt;
       &lt;label class="FieldName"&gt;
         Url:
       &lt;/label&gt;
       &lt;a id="url" href="&lt;%=Model.FinalPacketUrl %&gt;" target="_blank"&gt;
          &lt;%=Model.FinalUrl %&gt;&lt;/a&gt; &lt;/li&gt;
   &lt;li&gt;
       &lt;label class="FieldName"&gt;
        Password:
       &lt;/label&gt;
   &lt;span id="pwd"&gt;
      &lt;%=Model.FinalPassword %&gt;&lt;/span&gt; &lt;/li&gt;
  </code></pre>
  
  <p>This is my Jquery code.This is just only copy text not text value</p>
  
  <pre><code>  function CopyToClipboard() {
      var text = $("#url").attr("href") + "\n" + $("#pwd").html();
             $.copy(text);
          }
  </code></pre>
  
  <p>Please help me to fix this problem</p>