답변 2개
채택된 답변
+20 포인트
* view_comment.skin.php
1) 추가
Copy
<button type="button" id="btn_auto">자동 댓글</button>
<script>
$(function() {
$('#btn_auto').on('click', function() {
$('#wr_content').val('읽었습니다. <img src="aaa.jpg">');
$('form[name=fviewcomment]').submit();
});
});
</script>
2) 수정
$comment = $list[$i]['content'];
->
$comment = $list[$i]['wr_content'];
답변을 작성하려면 로그인이 필요합니다.