id 값이 존재 하는지 체크 하기

js API/jquery 2012. 6. 18. 11:49

JQUERY : HTML 에 특정 ID 값이 존재 하는지 체크하기

if ($("ID값").length > 0) {
  alert('id 있어요');
}