js获取input点选按钮的值的方法_javascript技巧
            
                    来源:动视网
                                        责编:小采
                                        时间:2020-11-27 21:21:57
                    
            
            
                         
                
                
                    js获取input点选按钮的值的方法_javascript技巧
                    js获取input点选按钮的值的方法_javascript技巧:html:  代码如下: 是 否  var isEnd; function getRadioVal(){ var temp = document.getElementsByName(isEnd); for(var i=0;i{ if(temp[i].checked){ isEnd = temp[i].value; return isEnd; bre
                    
                 
                
             
                        导读js获取input点选按钮的值的方法_javascript技巧:html:  代码如下: 是 否  var isEnd; function getRadioVal(){ var temp = document.getElementsByName(isEnd); for(var i=0;i{ if(temp[i].checked){ isEnd = temp[i].value; return isEnd; bre
                        
            

 html: 
 代码如下: 
是 
否 
 
var isEnd; 
function getRadioVal(){ 
var temp = document.getElementsByName("isEnd"); 
for(var i=0;i{ 
if(temp[i].checked){ 
isEnd = temp[i].value; 
return isEnd; 
break; 
} 
} } 
 script> 
 
    
    
        js获取input点选按钮的值的方法_javascript技巧
        js获取input点选按钮的值的方法_javascript技巧:html:  代码如下: 是 否  var isEnd; function getRadioVal(){ var temp = document.getElementsByName(isEnd); for(var i=0;i{ if(temp[i].checked){ isEnd = temp[i].value; return isEnd; bre