Change all html of a specific class
3 answers
$('.comment_date').each(function() { $(this).html( $(this).attr('title') ); }); I think this should do it - let me know if this is not what you are looking for.
It might be worth checking to see if the length of the title attribute matches >0 . It is best to use .each for such cases, otherwise you set something to the combined value of the values ββof several elements if you do not use .each .
+16