강의자료/Web

JQuery 에서 div 태그가 있는지 확인하기.

하얀뱀 2011. 3. 10. 18:54
 
if ( $(“#message”).length ) {
$(‘#message’).text(“Hello!”);
}