首页 > 其他 > 详细

RadioButtonList选择事件onclick

时间:2015-05-21 10:20:16      阅读:272      评论:0      收藏:0      [点我收藏+]

<asp:RadioButtonList ID="rbtnFInvoiceType" runat="server" onclick="checkType()"
RepeatDirection="Horizontal">
<asp:ListItem Selected="True">收据</asp:ListItem>
<asp:ListItem>发票</asp:ListItem>
</asp:RadioButtonList>

 

 


//选择票据类型
function checkType() {
if ($("#rbtnFInvoiceType").find("[checked]").val() == "发票") {
$("#txtFInvoiceCode").attr("readonly", false);
$("#txtFInvoiceCost").attr("readonly", false);
}
else {
$("#txtFInvoiceCode").attr("readonly", true);
$("#txtFInvoiceCost").attr("readonly", true);
$("#txtFInvoiceCode").val("");
$("#txtFInvoiceCost").val("");
}
}

RadioButtonList选择事件onclick

原文:http://www.cnblogs.com/taikongbai/p/4518897.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!