Replace img src - Jquery

by satheeshkumar 2012-07-04 18:58:28

To replace the image path or img src using jquery,

$('img').attr('src', 'test.jpg');

//you can use the id of the <img> like,
$('#imag').attr('src', 'test.jpg');

Tagged in:

1109
like
0
dislike
0
mail
flag

You must LOGIN to add comments