Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

389
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda