Radio Button won't stay check if I have a modal window open up when it is selected

Deadly 提交于 2020-01-05 06:28:54

问题


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

回答1:


When the Modal goes away, just recheck the radio button

$("radio button").attr('checked',true);



来源:https://stackoverflow.com/questions/11562598/radio-button-wont-stay-check-if-i-have-a-modal-window-open-up-when-it-is-select

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!