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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -