분류
jQuery
replace img src
본문
$('img').attr('src', 'test.jpg');
//you can use the id of the <img> like,
$('#imag').attr('src', 'test.jpg');
- 이전글웹사이트에서 모바일 사용자를 인식하는 jQuery 코드 15.05.22
- 다음글수십가지의 유용한 jQuery 플러그인 15.05.16
$('img').attr('src', 'test.jpg');
//you can use the id of the <img> like,
$('#imag').attr('src', 'test.jpg');