$('#cc').find('.calendar-day').each(function(){ var s = $(this).attr('abbr'); $(this).tooltip({ content: s })})