如何识别选定的单选按钮值或检查条件。我一直在开发以下代码,但我不明白为什么如果我检查 IsPerDay,IsPerDay 不会返回到控制器检查。如何在控制器中查看单选按钮检查或未检查?
看法
<script type="text/javascript">
function EveryDay() {
document.getElementById('RdIsPerDay').checked = true;
document.getElementById('RdIsPerWeekDay').checked = false;
document.getElementById("txtPerDay").style.visibility = 'visible';
document.getElementById("lblPerday").style.visibility = 'visible';
}
function EveryWeekDay() {
document.getElementById('RdIsPerDay').checked = false;
document.getElementById('RdIsPerWeekDay').checked = true;
document.getElementById("txtPerDay").style.visibility = 'hidden';
document.getElementById("lblPerday").style.visibility = 'hidden';
}
</script>