title: Create a div dynamically from existing div
body: <p>I am using this script to give me the a id from the existing div, now i am using GET to use that id and take into php and create another div, but what happens, is that whenever i click on the existing div, the page get's refreshed. Can i avoid that?               </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $('.lcard').click(function(){
      var cid = $(this).attr('id');
  
  
   window.location.href = "?cid="+cid;
  
  }); 
  </code></pre>