컴퓨터/jQuery
-
두 번째 자식으로 넣기컴퓨터/jQuery 2020. 1. 2. 11:05
* $( '부모가 될 selector>첫 번째 태그(직전 태그)").after(content) ex. $("#holder>div:eq(0)").after("inserted div"); * $( '부모가 될 selector>첫 번째 태그(직전 태그)").after(content) ex. $("#holder>div:nth-child(1)").after("inserted div"); 출처 : https://stackoverflow.com/questions/1791943/add-something-after-the-n-element-using-jquery
-
필터셀렉터(:)컴퓨터/jQuery 2019. 8. 27. 17:47
출처 : https://javacpro.tistory.com/40 [제이쿼리/jQuery] 필터셀렉터(:) . :first :last :even :odd :eq :gt :lt :has :not 요약 :fitst 첫번째로 일치하는 요소를 가져온다. :last 마지막으로 일치하는 요소를 가져온다. :even 짝수번째 요소를 모두 가져온다 ( first index : 0 ) :odd 홀수번째 요소를 모두 가져온다 ( first index : 0.. javacpro.tistory.com :first 첫 번째로 일치하는 요소를 가져온다. :last 마지막으로 일치하는 요소를 가져온다.