0
Mein Bootstrap-Popover wird nicht angezeigt.Bootstrap-Popover funktioniert nicht
Hier ist mein HTML:
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<div align='left' id='person'>Person</div>
<div id="popoverEditPerson" class="hide">
<form>
<h4>Enter Name:</h4>
<input id='nameInput' type='text' placeholder='Name'/>
</form>
</div>
Hier ist mein JavaScript:
$(function(){
$('#person').popover({
html: true,
title: 'Edit Person<a class="close" href="#");">×</a>',
content: $('#popoverEditPerson').html(),
placement: 'auto'
});
});
Hat keine Ahnung, jemand, was könnte ich tun falsch sein?
Verwenden Sie doppelte Anführungszeichen für HTML-Attribute '' '