the target of the substitute
<img class="" id="productview_icon" src="">
the object of initiating event
<img class="change-display" data-icon_src="xxx" src="">
event
e.preventDefault();
var icon_src = e.currentTarget.dataset.icon_src;
$("-sharpproductview_icon").fadeIn().attr("src", icon_src);
I found that I couldn"t achieve the fadeIn effect.
he just src it, but it doesn"t have any effect.
how to achieve this function?