jQuery(function () { jQuery( 'pre.code' ).each( function() { var $elmt = jQuery( this ); // Add button //$btn = jQuery( '
' ); $btn = jQuery( '
' ); $elmt.prepend($btn); // Setup click behaviour $btn.click(function() { var $txt = jQuery( '