這裏是一個使用jQueryjQuery中的對話框不工作?
$(document).ready(function(){
function showDialog() {
$("#Close").dialog({
resizable: true,
height: 140,
modal: true,
position: 'center',
buttons: {
'Yes': function() {
$(this).dialog("close");
return true;
},
'No': function() {
$(this).dialog("close");
return false;
}
}
});
};
$('#Open').click(function(){
alert('Hellp');
// showDialog();
});
});
但是否不工作我的對話框的代碼?這裏是我的jsfiddle - http://jsfiddle.net/zjRga/349/
我建議命名您的div比打開和關閉其他的東西 - 它真的很困惑我,因爲我認爲他們是按鈕。在這裏發佈你的html也會有幫助。 – Liath