RadioButton 用法

 @Html.RadioButton("rdoNotice", "1ST", true, new { id = "rdoFirstNotice" })@NoticePostRes.lblFirstNotice
  @Html.RadioButton("rdoNotice", "2ND", false, new { id = "rdoSecondNotice" })@NoticePostRes.lblSecondNotice

 

if ($("#rdoFirstNotice").is(":checked")) {
        printNamePrefix = $("#ddlPrintNamePrefix1").val();
        noticeType = "1ST";
    }

posted on 2018-03-09 13:18  sxjljj  阅读(616)  评论(0编辑  收藏  举报