var str = $(".title").text(); $(".title").attr("title", str); // essaie ça $(".title").each(function() { this.attr("title",this.text()); });