我一直想弄清楚如何让jquery对话框工作。对于我的生活,我无法实现它的工作。下面是一些HTML与在线的JavaScript我写:为什么不是我的jquery对话框工作?
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function showDialog() {
$('#dialogBox').dialog();
}
</script>
</head>
<body>
<input type="button" value="Click me" onclick="showDialog();" />
<div id="dialogBox">
<p>This is the text of my dialog box.</p>
</div>
</body>
</html>
当我点击Internet Explorer中的按钮,它说Object doesn't support this property of method.
我在做什么错?
接受:这是正确的,我不知道的jQuery和jQuery UI是两个不同的脚本库。谢谢! – 2010-10-12 15:48:15