Perhaps this:
$('img',e).attr({src: "path/to/image"});
Where img is the tag for your image and the comma ',' after the 'img'
indicates that this selector is relative to 'e' (i.e. inside it).
BTW there is no such beast as a <href> tag - href is an attribute of
an <a> tag.
In the same way 'src' is an attribute of an <img> tag.
Hope that helps
Ollie
On Nov 5, 10:14 pm, Olaf Gleba <[EMAIL PROTECTED]> wrote:
> This works:
>
> // 'e' is my reference to 'this'
> var i = $(e).children();
> $(i).attr({src: "path/to/image"});
>
> But i think there must be a shorter and more elegant way to do this