2016년 3월 31일 목요일

[javascript]form 태그에 input 태그 동적 생성 (appendChild)

//스크립트
$("#join_btn").on("click",function(){
console.log("11");
var arr = []
arr = $(".choice");
var input_hidden = document.createElement("input");
input_hidden.type = "hidden";
input_hidden.name = "test";
input_hidden.value = "test";
document.eventIstUdtForm.appendChild(input_hidden);
});

//html 일부분

...

<body>
<form name="eventIstUdtForm"></form>

...

댓글 없음:

댓글 쓰기

[lunux]리눅스 폴더별 용량 확인

리눅스 폴더별 용량 확인 조회 하고자 하는 디렉토리 리스트가있는 경로로 이동후 du -h --max-depth=1