110
rated 0 times
[
111]
[
1]
/ answers: 1 / hits: 65184
/ 12 Years ago, wed, december 5, 2012, 12:00:00
Possible Duplicate:
Setting image src attribute not working in Chrome
When user clicks on remove link I need to set the src
attribute of an image to empty. When I do it using
$('#img').prop('src', null);
src
is not empty but points to current url
if I remove src
using
$('#img').removeProp('src');
never let me to assign it back in the future
What's the best way to accomplish this?
More From » jquery