jQuery - Getting href from <a> -


i have jsfiddle here - http://jsfiddle.net/q73nd/3/

and demo here - http://www.ttmt.org.uk/forum/thumb/

i want sequentially load thumbnails , load bigger image of first thumbnail above.

my problem can't href large image <a>

i have vars <a> , imgcounter. i'm trying use these href

    console.log(link[imgcounter]).attr('href'); 

how href here?

link jquery object, link[imgcounter] dom element.

either use .eq [docs] element jquery object

// jquery object link.eq(imgcounter).attr('href') // or .prop('href) 

or access dom element's href property

// dom element link[imgcounter].href 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -