allbory
2009년 10월 20일 화요일
secret of name and id (1)
There are sevral checkbox with name 'chk'.
and you want to know how many chk boxes there.
if you're confuse id and name, you'll get different result.
1. ID
$("#chk_can").length
returns 1
2. NAME
$("input[name='chk_can']").length
returns 3
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기