jQuery find() function current element
jquery
Solution
`attr` method accepts a function, within the context of this function, `this` refers to the current element:
$("#one").find("img").attr("src", function(){
return this.name
});
Problem
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?