js 取多个id相同的值

来源:互联网 发布:中兴通抵扣软件 编辑:程序博客网 时间:2024/05/20 00:48

//  input  类型 id 以StudentInfoIdValue为开头的 属性的值 存放到数组中

 $("input[id^='StudentInfoIdValue']").each(function(){

        
         
            arrayId.push($(this).val());
        });
0 0