Add Content Dynamically to Popover Bootstrap

The use-case is:

  • Click in the bottom.
  • Show Popover.
  • Click into popover.
  • Change num of clikcs inside popover.

To change the content, we need to access any element of the popover. The popover is created dynamically, but you can access to his properties with the function data(‘popover’).tip() on the object popover . To change the content I made the example with the click event inside the popover.

Here is an example in jsFiddle (class css of popover not are by default of bootstrap , change for yours)

Comments