//因为 RadioButtonList 转为html语言时,会生成一个table 。 所以e不能用了,用Vi代替e。
var Vi = 0;
$('#AdvanceTb tbody tr').each(function(e) {
//因为 RadioButtonList 转为html语言时,会生成一个table 。做一下判断,只在第一层table里边遍历。
AdvanceTb是Table的id。
if ($(this).parent().parent().attr('id') == "AdvanceTb") {
Applicationdata[Vi] = new Array();
Applicationdata[Vi][0] = hidid;
Applicationdata[Vi][1] = $(this).find("input:eq(0)").val();
Applicationdata[Vi][2] = $(this).find("input:eq(1)").val();
//平凑 RadioButtonList 的id ( AdvanceTb_ct00_rblIsOffset)
var fristInputId = $(this).find("input:eq(1)").attr('id');
var fristInputIds = fristInputId.split("_");
var ee = fristInputIds[0] + "_" + fristInputIds[1] + "_" + "rblIsOffset";
Applicationdata[Vi][3] = $(this).find("#" + ee + " input[type=radio]:checked").val()
Vi++;
}
});