JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-popover.js"></script>
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
    <div>
        <a href="#" rel="popover" data-class="dynamic-class" title="Title goes here" data-content="Content goes here">Link</a>
    </div>

CSS

body {
    padding: 0 200px;
}

JavaScript

$(function(){
        $('a[rel=popover]')
        .popover({
            placement : 'bottom',
            trigger : 'hover'
        })
        .on("click", function(){
            $(this).closest("div").addClass($(this).data("class")); //Add class .dynamic-class to <div>
        });
    });