I want to append some text to the title attribute of all elements of a certain class.
I know this question is 7 years old. Just in case someone came across this question, here's the solution without using .each:
$('.theclass').attr("title", function() { return $(this).attr("title") + "Appended text." });