Karl Rudd schrieb:
What do you mean by "required tag"? Do you mean the attributes in the tag/element, like src="pic1"? If you want the "src" attribute of the element you have selected you could do this: alert( $("#k img").get(i).attr('src') );
No, that will throw an error, because at this point: $("#k img").get(i) you already have a reference to the DOM element itself. Thus the following will work:
$("#k img").get(i).src or stick to jQuery: $("#k img").attr('src') But do not mix! -- Klaus