单选按钮将无法保持检查,如果我有选择,当一个模式窗口打开 [英] Radio Button won't stay check if I have a modal window open up when it is selected
本文介绍了单选按钮将无法保持检查,如果我有选择,当一个模式窗口打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在当用户选择一个单选按钮,我需要一个模态窗口中打开,并提示用户凭据一个asp.net web项目。
我有的TargetControlID设置为单选按钮。该模式打开了就好了,但是当它消失未选中的单选按钮。
编辑:
删除code因个人原因
解决方案
在模态消失,只是重新检查单选按钮
$(单选按钮)ATTR('检查',真);
In a asp.net web project when the user selects a radio button I need a modal window to open up and prompt for user credentials.
I have the "TargetControlID" set to the radio button. The modal opens up just fine but when it goes away the radio button isn't checked.
EDIT:
Removed code for personal reasons
解决方案
When the Modal goes away, just recheck the radio button
$("radio button").attr('checked',true);
这篇关于单选按钮将无法保持检查,如果我有选择,当一个模式窗口打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文