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
Post a Comment