답변 1개
채택된 답변
+20 포인트
10년 전
</p><p><script type="text/javascript">
$(function() {
$("#btn").on("click", function() {
var num = $("#num").val();
var input = "<input type='text' name='test[]' value='' />
";
if(num) {
for(i=1; i<=num; i++) {
$("#apn").append(i + "항" + input);
}
}
});
});
</script>
<input type="text" name="num" id="num" /><button type="button" id="btn">확인</button>
<div id="apn"></div></p><p>
http://nyaongii.dothome.co.kr/temp/wrid_79092.html">http://nyaongii.dothome.co.kr/temp/wrid_79092.html
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
관악꽃
10년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
제가 답변을 늦게 보아 죄송합니다.
정말정말 감사합니다.^^