 <p>OK..</p> <p>Are you asking for something like that?</p> <pre><code>&lt;div id="sample"&gt; &lt;a class="uploadedfiles" href="www.google.com"&gt;File&lt;/a&gt; &lt;div class="diagram"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS</p> <pre><code>.diagram { width:100px;height:100px;border:1px solid #000000;} </code></pre> <p>JS</p> <pre><code>$(document).ready(function(){ var url = $('.uploadedfiles').attr('href'); $('.diagram').append('&lt;a href="'+url+'"&gt;File&lt;/a&gt;'); $('.uploadedfiles').remove(); }); </code></pre> <p>Fiddle:</p> <p><a href="http://jsfiddle.net/dVLjU/1/" rel="nofollow">Check this</a></p>