allbory
2009년 7월 29일 수요일
jQuery - exist element?
Jquery returns its length even though it hasn't created yet.
$("#id").length = 0 means there's no element for '#id'
if($("#id").length > 0 ) {
// to do something...
}
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기