Hi, I'm editing some old sideshow code someone else written a while ago and I was wondering how you get the alt attribute of an image with prototype.
Ive got the image tag selected with the code below:
$$('#' + this.slides[this.currentSlide].id + ' a img')
But for the life of me I don't know how to get the alt text.
I've tried...
$$('#' + this.slides[this.currentSlide].id + ' a img').alt;
$$('#' + this.slides[this.currentSlide].id + ' a img').alt();
$$('#' + this.slides[this.currentSlide].id + ' a img').readAttribute('alt');
Could anyone help.