$('#btn3').click(function(){ --> id btn3 클릭
vimg = $('<img>', {
'src' : '../images/단풍.jpg',
'width' : '100px',
'height' : '100px'
}); --> vimg라는 변수에 이미지 생성하는 값을 담음
$(vimg).appendTo('#result3'); --> id result3에 이미지 찍음
})
'jQuery' 카테고리의 다른 글
jQuery before - 이미지 넣기 (0) | 2020.01.08 |
---|---|
jQuery after-이미지 넣기 (0) | 2020.01.08 |
jQuery 조작관련 메소드 (0) | 2020.01.07 |
jQuery form상태 - :selected (0) | 2020.01.06 |
jQuery 자식필터 (0) | 2020.01.06 |
댓글