jquery循环获取每个表格的ID



type="hidden"
class="row_id"
value="${row[10]}"
/>




var value2;
$(".row_id").each(function() {
// $(".row_id").length
value2 += $(this).val() + ",";
});
if ($.trim(value2)) {
value2 = value2.replace("undefined", "");
value2 = value2.substr(0, value2.length - 1);
}
alert(value2);



[img]http://dl.iteye.com/upload/attachment/0061/9088/a083060c-6d56-37b3-a4ca-631e3ac194c2.jpg[/img]

你可能感兴趣的:(JAVA,乔乐共享)