Home › Forums › JavaScript › jQuery variable › Re: jQuery variable
May 8, 2013 at 9:09 am
#134436
Participant
Something like this:
$(‘#kort a’).each(function() {
var cl = this.parentNode.className;
var href = $(‘.kort-nav .’ + cl + ‘ a’).attr(‘href’)
this.href = href;
});