Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery variable Re: jQuery variable

#134436
CrocoDillon
Participant

Something like this:

$(‘#kort a’).each(function() {
var cl = this.parentNode.className;
var href = $(‘.kort-nav .’ + cl + ‘ a’).attr(‘href’)

this.href = href;
});