前台:
function bindclick(){
// alert($("input[type='radio']").length);
$("input[type='radio']").click(function(){ //绑定radio绑定事件
//alert($("#hidjcxm").val());
//alert($(this).next().text());
$("#hidjcxm").val($(this).val());
$("#txtseljcxm").val($(this).next().text());
});
}
<asp:RadioButtonList ID="cboshui" runat="server" RepeatColumns="5" RepeatDirection="Horizontal"
Width="95%">
</asp:RadioButtonList>
<input id="txtseljcxm" type="text" runat="server" />//文本值
<input id="hidjcxm" type="hidden" runat="server" />//value值
<div id="divjs" runat="server">//最后面的div,用于后台绑定值后,才绑定js,否则获取写道前面绑定不了
</div>
后台:
绑定radiobuttolist,
然后 string jssql = "<script type='text/javascript'>bindclick();</script>";
this.divjs.InnerHtml = jssql;
aspx页面的radio
<input id="cboshui_0" type="radio" name="cboshui" value="1001" /><label for="cboshui_0">PH</label></