Popover HTML

HTML
<div class="container"> <h3>Examplo de Popover HTML</h3> <p>Popovers are not CSS-only plugins, and must therefore be initialized with jQuery: select the specified element and call the popover() method.</p> <a tabindex="0" data-trigger="focus" href="#" data-placement="bottom" id="tglr" class="popover-toggle" title="Informações de Perfil">Toque para exibir</a> <div id="customdiv" style="display: none"> Algum código <b style="width: 50px; background-color:red;">HTML</b> bem aqui e usnado <a href="#">link</a>. </div> </div>
CSS
body { margin: 10px; }
JAVASCRIPT
$(document).ready(function(){ $('#tglr').popover({ html : true, content: function() { return $('#customdiv').html(); } }); });
Expand for more options Login