dyaa
10/2/2013 - 5:01 PM

Place a form within popover in bootstrap 3

Place a form within popover in bootstrap 3

$('#popover').popover({ 
  html : true,
  title: function() {
    return $("#popover-head").html();
  },
  content: function() {
    return $("#popover-content").html();
  }
});
<a href="#" id="popover">the popover link</a>
<div id="popover-head" class="hide">some title</div>
<div id="popover-content" class="hide">
  <form>
    <!-- my form -->
  </form>
</div>