본문 바로가기
카테고리 없음

제이쿼리 each문

by 멋진 개구리 2021. 3. 31.
반응형

    $(".list-group.collapse").each(function (index, item){
        $(item).attr('id','list-group-item'+index);
    });

 

선택자에 아이디 추가하는 방법

반응형

댓글