关闭

$.each $cmb_upload.each

394人阅读 评论(0) 收藏 举报
分类:


$.each $cmb_upload.each

            var uploadlist="";
            var $cmb_uploadlist=$('#cmb_uploadlist');
            $.each(cmb_uploadlist,function (index,opt){       
                var $this=$(this);
                alert($this.val());
                //alert(opt.value + "," + opt.textContent);

            });




也有$cmb_uploadlist.each(function (index,opt){
);


 var $cmb_uploadlist=$div.find("#cmb_uploadlist");
              var list_upload="";
              if($cmb_uploadlist.length>0)  //找到这个下拉框对象
              {
               for(var i=0;i<$cmb_uploadlist[0].options.length;i++)
               {
                 list_upload+=$cmb_uploadlist[0].options[i].value + ",";
                 //alert(list_upload);
               }
            if(list_upload.length>0) list_upload=list_upload.substr(0,list_upload.length-1);

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:149435次
    • 积分:2443
    • 等级:
    • 排名:第15130名
    • 原创:88篇
    • 转载:71篇
    • 译文:0篇
    • 评论:15条
    最新评论