This is what i got sofar:
Code: Select all
var imageNum = 0;
var linkArray= new Array;
var imageArray = new Array;
linkArray = jQuery('' + imageLink.tagName + '[rel=' + imageLink.rel + ']').get();
imageArray = jQuery.each(linkArray, function(anchor){ return [anchor.href, anchor.title]; });
alert(imageArray[imageNum][0]);
//loop through all anchors with the same 'rel'
while (imageArray[imageNum] != imageLink.href) { imageNum++; }Why do i still keep getting 'undefined' in the alert-window (there for test-reasons only)?
Anyone knows how to help?