1
I have a Pover that shows information and would like to know how to pass values of variables contained in javascript to data-content within this Pover? Follows my code:
var id_teste = 'teste';
$(document).ready(function(){
$('[data-toggle="popover"]').popover({html: true});
});
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css" rel="stylesheet"/>
<button type="button" class="btn btn-default" data-position="top-left" title="Sem Contato" data-toggle="popover" data-placement="top" data-content="VARIÁVEL JAVASCRIPT AQUI!!!!">Sem Contato</button>
I got it, buddy. Thanks
– Carlos
@Carlos nice slow that worked out there!
– hugocsl