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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -