js得到RadioButtonList的值

function getRadio()
     {
         var opts = document.all("rbListColumnType");
         if (opts)
         {
             for (var i = 0; i < opts.length; i++)
             {
                 if (opts[i].checked)
                 {
                     alert(i);
                     break;
                 }
             }
         }
     }
原文地址:https://www.cnblogs.com/nj0409/p/1375673.html