$(function() { $( ".part" ).attr("title","").tooltip({ content: function(a) { a($(this).attr("description-data")) }, hide: { delay: 1700 } }); });