menu
more_vert
JS获取select框的值

作者:dayu

         
         var obj = document.getElementsByName(‘vipActs‘);
         var val = "";
         for (var i = 0; i < obj.length; i++) {
             if(obj[i].checked==true){
                val = val + obj[i].value+",";
             }
        }

//vipActs为复选框的name值

JS获取select框的值

原文地址:http://www.cnblogs.com/miye/p/7203878.html



Processed Time:0.25985884666443

_REQUEST:
Array
(
    [0] => read
    [1] => 95641
)
_SESSION:
Array
(
    [fid] => 4
)