我tryng让所有的ID,在“页面templete1”每个输入元素的值 和我没有成功JQuery的:获取ID,所有输入单元的值
function Temp1() {
var input = [];
$('page-templete1 input[name][id][value]').each(function(){
input.push(this);
cc=$(this).attr('id'));
alert(cc); // trying to get one at time (not working)});
alert(input[0].id); // not working
alert(input[0].attr('id')); // not working
});
alert(input[0].id); // not working
alert(input[0].attr('id')); // not working
}
我怎样才能得到ID,所有输入元素的值在一个页面中,并有权访问一个他们以后 注:我完成了输入元素的ID或多少。有一个老帖子在谈论类似的问题,但并没有解决我的问题
尝试删除'[名] [ID] [值]'在离选择器 – 2013-02-21 12:17:17