关于js操作radio的问题
首先我用for   (var   i   =   0;   i    <   this.elements.length;   i++)   遍历整个表单. 
 然后判断类型为radio的时候if(this.elements[i].type   ==    "radio ") 
 做处理      wrestRadioRequired(this.elements[i]);   
             function   wrestRadioRequired(fld) 
             { 
 	var   len   =   0; 
 	count   =   document.getElementByName(fld.name).length   ; 
 	alert(count);  		 
             }	   
 问题是取不到radio数组的数量啊??count为undifiend
------解决方案--------------------count  =  document.getElementsByName( 'radioname ').length  ;   
 alert(count);