I have the code below. What i want to achieve is when i hover those h1 and p. the contents are output correctly and dynamically to the tooltip(h1 ->This is heading,p -> this is paragraph). Now the tooltip output is fixed to span(id = "tooltip_content")
$(document).ready(function() {
$('.tooltip').tooltipster();
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.0/jquery.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/tooltipster/3.3.0/css/themes/tooltipster-light.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/tooltipster/3.3.0/js/jquery.tooltipster.min.js"></script>
<h1 class="tooltip" data-tooltip-content="#tooltip_content">This is a Heading</h1>
<p class="tooltip" data-tooltip-content="#tooltip_content">This is a paragraph.</p>
<div style="display:none" class="tooltip_templates">
<span id="tooltip_content">
<strong>This is the content of my tooltip!</strong>
</span>
</div>
From the
tooltipsterdocumentation (5.):