I’m trying to move strings from name attributes to the src of each img.
I’m using jQuery to do this:
$("#one").find("img").attr("src",$(this).attr("name");
Now the problem is that $(this) is not the current manipulated element. So how do I get the current element that find() has found?
attrmethod accepts a function, within the context of this function,thisrefers to the current element: