0
我的弹出窗口弹出不显示。Bootstrap弹出不起作用
这里是我的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>
这里是我的JavaScript:
$(function(){
$('#person').popover({
html: true,
title: 'Edit Person<a class="close" href="#");">×</a>',
content: $('#popoverEditPerson').html(),
placement: 'auto'
});
});
没有人有任何想法我可能是做错了什么?
对HTML属性使用双引号'''