下面小编就为大家带来一篇Js得到radiobuttonlist选中值的两种方法(推荐)。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。
如下所示:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="ajaxselect.OnmouseTitle.WebForm1" %>
function getvalue()
{
var b=document.all.rbtid.length
var a=document.getElementById("rbtid").cells.length;
//alert(b);结果为5
//alert(a);结果为4
//for(var i=0;i Width="216px" Height="176px" name="rbtid"> type="button" value="Button">
以上这篇Js得到radiobuttonlist选中值的两种方法(推荐)就是小编分享给大家的全部内容了,希望能给大家一个参考