Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- gethostname
- 웹
- PQ92
- 한글
- BI트리
- 한글폰트
- 퓨어Q9
- 바이낸스
- pulltoreload
- 펜윅트리
- 2934
- CSS #그라데이션 #선형 #이미지위에
- 어퍼스트럭쳐
- remarkable
- 무접점키보드
- 랜덤코드
- vanilla.js
- random chord
- PQ92-3BWF
- random-chords
- 앱코
- LRH 식물
- 크러쉬 - 춤
- 크러시
- 당겨서새로고침
- 한국어
- LRH식물
- 리마커블
- 래퍼럴
- 리마커블2
Archives
- Today
- Total
toujours
jquery 사용시 find is not a function 오류 (배열[N].find) 본문
<div id='a'></div>
<div id='b'></div>
$('div') 의 결과가 2개이상일때,
$('div')는 jquery객체이자 [DOM, DOM]을 반환한다.
이때 DOM.find는 먹히지 않음. jquery객체만 find 가능.
이럴땐 vanilla js로 querySelector쓰던가
$(this)로 clone()해서 쓰던지 하자.
아래 링크 참고
jQuery throws an error that element.find() is not a function
I have written a small JS to iterate through a set of matched elements and perform some task on each of them. Here is the code: var eachProduct = $(".item"); eachProduct.each(function(index, ele...
stackoverflow.com
반응형