ツールチップ内の data-content-id からコンテンツを取得する必要があります。何らかの理由で、コンテンツを取得して内部にプルしません。
コードは次のとおりです。
// Create the tooltips only when document ready
$(document).ready(function()
{
/// Grab all elements with the class "hasTooltip"
$('.hasTooltip').each(function() { // Notice the .each() loop, discussed below
$(this).qtip({
content: {
text: $('#tooltip-content-' + $(this).find('[data-contentid]').data('contentid')) // Grab content using data-content-id attribite value
}
});
});
});
理解を深めるために、ここにフィドルがあります。