jquery - Populate tooltip container with inline content? -
how reference tooltips on same page? have following references external file, needs change knows on same page?
$('#tip-container').empty().load('tooltips.html ' + tooltipid).fadein(500); ? thanks
if don't need call server tooltip content because on page, don't need load(). use jquery selector. depending on exact location of tooltip content on page this:
var tooltipcontent=$('#'+tooltipid).html(); $('#tip-container').html(tooltipcontent).fadein(500);
Comments
Post a Comment