동적으로 img 태그 생성하는 방법
페이지 정보
작성자 서방님 댓글 0건 조회 138회 작성일 12-12-07 11:17본문
$('<img>', {
src: 'images/little.bear.png',
alt: 'Little Bear',
title:'I woof in your general direction',
click: function(){
alert($(this).attr('title'));
}
}).css({
cursor: 'pointer',
border: '1px solid black',
padding: '12px 12px 20px 12px',
backgroundColor: 'white'
}).appendTo('body');
댓글목록
등록된 댓글이 없습니다.