Hellou Folks!
my question: i have an img tag
<img class="myclassname" src="1.jpg" name="2.jpg">
i'd like to change the img source (currently 1.jpg) to the one i wrote in the "name" attribute (2.jpg) using jquery.
why this does not work?
$(".myclassname").attr("src", $(this).attr("name"));
thanks for any help! greets mafka
(ps: the script is more complex, of course, but this is the problem i stuck)