我无法使用jquery关闭弹出窗口。当用户输入1以外的值作为输入时,弹出窗口出现。无法关闭引导弹出窗口
我需要使用x
符号来关闭特定的弹出窗口。
而且x
没有出现在极端right.It是怎么回事就弄伤希望它出现在右上角或极端right.And我不想使用title
为酥料饼
<br/>
<br/>
<br/>
<input type="text" class="check" />
<input type="text" class="check" />
<input type="text" class="check" />
<input type="text" class="check" />
<input type="button" id="Save" value="Save" />
JQuery的
$(document).ready(function() {
var elem ='<div>Invalid</div>'+'<button class="close pull-right" data-dismiss="popover" onclick="$(this).popover("hide");">×</button>';
$("#Save").click(function() {
$(".check").each(function() {
$val = $(this).val();
if ($val != 1) {
$(this).popover({
content: elem,
html:true
});
$(this).popover('show');
}
})
})
})