개발/javascript & jquery
팝업창에서 listArr 값으로 보낸것 받아오기
멋진놈
2022. 8. 23. 08:33
728x90
팝업창에서 listArr 값으로 보낸것 받아오기
*/
function setResList(listArr){
if($("#noRes").length > 0) $("#noRes").remove();
var getListLength = listArr.length;
console.log(getListLength , "getListLength ");
getCountLength(getListLength);
var test1 = listArr;
console.log("test1" , test1);
var test2 = listArr[0][1];
console.log("test2" , test2);
//test[0].listId = 1
var getListArrId = "";
var test6 = "";
console.log("getListArrId",getListArrId);
console.log("test6",test6);
var arrData = [];
console.log("arrData " , arrData);
for(var i=0; i<listArr.length; i++){
var listArrId = listArr[i].listId;
getListArrId = listArrId;
var test4 = listArr[i].listNickName;
test6 = test4;
arrData.push(listArrId);
/*getListResultId(getListArrId);*/
console.log("listArrId ", listArrId);
console.log("test4 ", test4);
console.log("arDatal2 " , arrData);
var trCnt = $("#resTb tbody tr").length;
$("#resTb tbody").append($("#resTr").html());
var fnTr = $("#resTb tbody tr:last");
$(fnTr).attr("id","tr_"+listArr[i].listId);
$(fnTr).find("td[name='no']").append(trCnt+1);
$(fnTr).find("td[name='no']").find("input[name='listId']").val(listArr[i].listId);
$(fnTr).find("td[name='listNickName']").append(listArr[i].listNickName);
}
getListResultId(arrData);
console.log("getListArrId-2",getListArrId);
console.log("test6-2",test6);
console.log("arDatal3 " , arrData);
}