我有一个复选框,一旦检查,就打开一个弹出窗口,其中包含用于文件上传和文本字段的表单。如果表单提交未完成,我希望取消选中已选中的复选框。
弹出代码就在这里
[root@dmitrypc thrift]# dnf list installed | grep 'python-devel'
Failed to synchronize cache for repo 'rpmforge', disabling.
python-devel.x86_64 2.7.12-1.fc24 @updates
[root@dmitrypc thrift]# dnf list installed | grep 'python3-devel'
Failed to synchronize cache for repo 'rpmforge', disabling.
python3-devel.x86_64 3.5.1-12.fc24 @updates
[root@dmitrypc thrift]#
答案 0 :(得分:0)
试试这个,
$('#chk1').prop('checked', false);
取消选中您的复选框。在您要检查表单是否已提交的块中使用此代码。