$('link').each(function(i, link) {
link = $(link);
if (link.attr('rel') && link.attr('rel').indexOf("style") != -1 && link.attr('title')) {
if (link.attr('title') == theme_id) {
link.attr('disabled', false);
applied = false;
activetheme = v_css;
} else {
link.attr('disabled', true);
}
}
});
0
solved Convert javascript for loop into jquery