Changing link location with jQuery
Hi,
I'm using the nifty Galleriffic plugin for my very simple photo gallery:
http://tinyurl.com/c9tfx8
Screenshot explaining the issue here:
http://tinyurl.com/dfs7ll
Clicking on the MAIN image switches to the next, I want it to link to the product page URL instead.
This is just what I want, but the value of href variable isn't parsed correctly:
-
$(document).ready(function() {
setTimeout(function(){
var href = $('.caption h2 a').attr('href');
$("a.advance-link").removeAttr('href');
$("a.advance-link").attr('href', 'href');
},4000);
});
..is just parsed as 'href' instead of its real value (something.html)
I'd greatly appreciate any help. Thanks in advance!