Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

384
Views
Bootstrap Popover plugin: not displaying the html content properly

The Bootstrap Popover plugin is not displaying the HTML content properly.

I have a button inside the popover and when clicking that button I need to perform some action. When I add the onclick function on the button, the button disappears from the popover.

Also, the button and popover are randomly generated so I can't use the jQuery onclick.

Can anyone help me with why the button is not displayed if I add an onclick function in the bootstrap popover?

$('.popover-menu').popover({
  'html': true,
  'placement': 'top',
  'trigger': 'manual',
  'animation': false,
  'container': 'body',
  'template': '<div class="popover popover-menu-wrapper"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>',
  'content': function () {
    var content = $(this).attr('id');
    return $("#" + content + "Popover").html();
  }
});
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!