Hi.
I have a reference to 'this', which is a href tag. This href contains
as the only child a image. I want to select only this image, to
modify his src attribute.
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
like for example:
$(e + :'only-child').attr({src: "path/to/image"});
but this unfortunately doesn't work.
Any hint is appreciated
greets
Olaf
--
Olaf Gleba : creatics media.systems
tel. +49 (0)212 38 32 94 30 : fax. +49 (0)212 38 32 94 31
[EMAIL PROTECTED] : http://www.creatics.de
http://www.creatics.de/keys/