jQuery(document).ready(function() { jQuery("form p span input").each(function() { jQuery(this).attr("placeholder", jQuery(this).attr("title")); }); jQuery("form p span textarea").each(function() { jQuery(this).attr("placeholder", jQuery(this).text()); jQuery(this).text("") }); });

I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.