我想在选中 html 复选框时弹出一个 jQuery 对话框。我正在使用以下代码。但它不起作用。
$(document).ready(function () {
$('#chkBoxHelp').click(function () {
if ($(this).is(':checked')) {
$("#txtAge").dialog();
}
});
});
html如下:
<input type="checkbox" id="chkBoxHelp"/>
<div id="txtAge" style="display: none;">Age is something</div>
请帮我。
我还想在弹出窗口关闭时取消选中复选框。复选框位于 jQuery 弹出框中。我需要在选中的复选框上打开另一个弹出窗口。
提前致谢。