JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<div class="panel panel-success redim" data-info="informations" 
data-content="&lt;div class=&quot; text-center&quot;&gt;&lt;a class='data-info' id='me' href=&quot;#&quot;&gt;Get info&lt;/a&gt;&lt;/div&gt;" data-original-title="Get data from popover">
 
  <div class="panel-body">Body</div>
</div>

CSS

.redim {
  margin: 10px;
  width: 60%;
}

JavaScript

$(function() {
  popoverOptions = {
    html: true,
    animation: true
  };
  $('.panel').popover(popoverOptions);
});

$(document).on('click', '.data-info', function(){

var newDiv = document.createElement("div");
var newContent = document.createTextNode("Hi there and greetings!"); 
  // add the text node to the newly created div
  newDiv.appendChild(newContent);

var currentDiv = document.getElementById("me"); 
alert(document.getElementById("me").innerhtml)

  document.body.insertBefore(newDiv, currentDiv); 
 //alert($(this).closest('.popover').prev().data('info'));
});