How to get the src of a clicked image with prototype
问题 I am struggling to get the image src of a image when its clicked. I just need the jQuery(this).attr("src") but in prototype, this.readAttribute doesn't work. I get: “this.readAttribute is not a function” $$('.more-views > ul > li > img').invoke('observe', 'click', this.updateImage.bind(this)); updateImage: function (){ //var src = jQuery(this).attr("src").replace("thumbnail/66x66", "image");//changes src from thumbnail to large image Needs the above but in prototype. //jQuery('#image').attr(