CodePen

HTML

            
              <div id="main">
<button class="replicate">Button</button>
</div>
            
          
!
via HTML Inspector

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              var singleData = $('#main').html();

	$('.replicate').click(function(){
		$('#main').append(singleData);		
		});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................