I want to change an img src with jquery, without pulling an image from server again.
I do it with next chunk of code:
var img = $(this).find('img');
$('#preview .modal-body img').prop('src',img.prop('src'));
$('#preview').modal();
But browser is trying to pull this image from a server again. how i can avoid it ?