Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 16: | Rivi 16: | ||
console.log("I showed up"); | console.log("I showed up"); | ||
}); | }); | ||
jQuery('fieldset:visible .JwLocRadiobuttons').each(function() { | |||
var input = jQuery( this ).children('input').first(); | |||
var classes = jQuery( this ).attr('class').split(' '); | |||
var val = input.val(); | |||
for (var i in classes) { | |||
strArr = classes[i].split('-'); | |||
if (strArr[1] == val) { | |||
old = input.parent().html(); | |||
newLabel = old.substr(0, old.lastIndexOf(";")) + strArr[2].split('_').join(' '); | |||
jQuery( this ).html(newLabel); | |||
break; | |||
} | |||
} | |||
}); | |||
jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | jQuery('fieldset:visible .JwLocCheckboxes').each(function() { | ||


