"JQuery .nextUntil()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
2번째 줄: 2번째 줄:
;jQuery .nextUntil()
;jQuery .nextUntil()


<source lang='html5'>
<syntaxhighlight lang='html5'>
<script src='//code.jquery.com/jquery.min.js'></script>
<script src='//code.jquery.com/jquery.min.js'></script>
<script>
<script>
18번째 줄: 18번째 줄:
     <div>박스6</div>
     <div>박스6</div>
</div>
</div>
</source>
</syntaxhighlight>
<jsfiddle height='200'>sz1xfogu</jsfiddle>
<jsfiddle height='200'>sz1xfogu</jsfiddle>



2020년 11월 2일 (월) 02:53 기준 최신판

1 개요[ | ]

jQuery .nextUntil()
<script src='//code.jquery.com/jquery.min.js'></script>
<script>
$(function(){
    $('#mybox').nextUntil('p').css('background', 'yellow');
});
</script>
<div>
    <div>박스1</div>
    <div id='mybox'>박스2</div>
    <div>박스3</div>
    <div>박스4</div>
    <p>안녕하세요</p>
    <div>박스5</div>
    <div>박스6</div>
</div>

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}