The Bootstrap popover works fine with your code. If you want to put the entire html of popover_content_wrapper
inside the popover, you should use .clone() instead of .html()
.html() will just get the inside of popover_content_wrapper
, which results in the text "HIDDEN CONTENT" to show in the popover