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>

...

댓글 없음:

댓글 쓰기

[oracle]백업및 복구

[oracle]백업및 복구 오라클 덤프 백업및 복구 윈도우 서버 기반 간단 정리 --디렉터리 조회 sqlplus 또는 dbtool 입력시작 SELECT * FROM DBA_DIRECTORIES ; --D:...