In my code I have a div
that I use to load different content type using JQuery, Now the new content I loaded into the div has popovers, the problem is that the pop overs do not disappear when I load new content into the div
, its almost like they get appended onto the new content.
How do I make them disappear when new content is loaded into the div
?
HTML
<div class='box-nfh genericGreyBackground'>
<div class='box_74'>
<h2>Performance management is an ongoing process of communication between a supervisor and an employee that occurs throughout the year, in support of accomplishing the strategic objectives of the organisation. It involves five distinct actions. </h2>
<div class='pentagonContainer'>
<div class='pentagon'>
<img src='images/pentagon.png'>
<span class='pentagonCircle' id='penBtn1' type='button' data-container='body' data-toggle='popover' data-placement='top' data-content='Clarify expectations'> 1 </span>
<span class='pentagonCircle' id='penBtn2' type='button' data-container='body' data-toggle='popover' data-placement='top' data-content='Set objectives'> 2 </span>
<span class='pentagonCircle' id='penBtn3' type='button' data-container='body' data-toggle='popover' data-placement='top' data-content='Identify goals'> 3 </span>
<span class='pentagonCircle' id='penBtn4' type='button' data-container='body' data-toggle='popover' data-placement='top' data-content='Provide feedback'> 4 </span>
<span class='pentagonCircle' id='penBtn5' type='button' data-container='body' data-toggle='popover' data-placement='top' data-content='Evaluate results'> 5 </span>
</div>
</div>
</div>
</div>