jQuery(function($){ $('a.administration-buttons').each(function() { $(this).find("img").remove(); $(this).find("br").remove(); var button_title = $(this).find("div").html(); $(this).find("div").remove(); $(this).append(button_title); $(this).wrapAll('