답변 2개
채택된 답변
+20 포인트
2년 전
Copy
$('.tbl_head01 tr').each(function(index){
console.log( index + ": " + $( this ).find('span').text() );
var arr = [];
var txt = $( this ).find('span').text()
arr = txt.split(',');
console.log(arr)
for (var i = 0; i arr.length; i++) {
$( this ).find('td').eq(parseInt(arr[i])+1).addClass('on');
}
});
위 스크립트가 <?php if ($is_checkbox) { ?> ... <?php }?> 안쪽에있습니다.
$is_checkbox가 관리자일경우에만 실행되므로 위 스크립트 위치를 옮겨보세요
Copy
...
$(document).ready(function () {
$('.tbl_head01 tr').each(function(index){
console.log( index + ": " + $( this ).find('span').text() );
var arr = [];
var txt = $( this ).find('span').text()
arr = txt.split(',');
console.log(arr)
for (var i = 0; i arr.length; i++) {
$( this ).find('td').eq(parseInt(arr[i])+1).addClass('on');
}
});
})
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
2년 전
관리자에 보시면 게시판 같은경우
![]()
이런게 존재 합니다.
혹시 이 부분 체크 하셨는지요..?
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
2년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인

다시 한번 확인 해봤지만 모두 권한 1입니다.. ㅠ