728x90

1. 이름으로 태그 불러오기

$('ul[name=commentChange]').hide()
  • <ul> 태그의 name이 commentChange인 태그를 숨긴다.

2. 태그 숨기기

$('pre[name=comment' + commentId + ']').contents().unwrap().wrap('<p></p>')
  • <pre>태그의 name이 comment + commentId(댓글 번호, 특정 댓글 태그만 변경하기 위한 값) 인 태그를 <p>태그로 바꿈

+ Recent posts