선생님~ 선생님이 git에 올려주신 _post_card.html에서
$('#post-10-comment-list').prepend(responseText); 가
$("#post{post.pk}}-comment-list").prepend(responseText);로 바뀌어야 하지 않나요??
선생님~ 선생님이 git에 올려주신 _post_card.html에서
$('#post-10-comment-list').prepend(responseText); 가
$("#post{post.pk}}-comment-list").prepend(responseText);로 바뀌어야 하지 않나요??
로그인 후, 질문 답변 작성이 가능합니다.
안녕하세요.
말씀하신 대로 html 내에서 아래와 같이 id를 지정했기에
동일 파일 내의 js 에서 id 참조 시에 아래와 같이 적용되는 것이 맞습니다.
오류를 찾아주셔서 감사드립니다. :-)
댓글