자바스크립트 Dom 객체 생성하기

 

  var type = document.createElement("input");
  type.name = "type";
  type.value = document.underform.value;
  document.underform.appendChild(type);

 

 

 

 

<form method="post" action="/under/emergency.nhn" name="underform">
 <input type="hidden" name="m" value="update"/>
    <input type="hidden" name="underid" value="${under.underid}" />
    <input type="hidden" name="listUrl" value="${param.listUrl}"/>

Posted by 김용환 '김용환'

댓글을 달아 주세요