Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Im having an Requirement to change a Sub font in Service catalog check box variable



If "Adode Acrobat" is Check box variable i had brought the colour for full TEXT

I need only for "Acrobat" for that variable

Any thoughtful ideas

What I have tried:

I had tried client script for that variable

function onLoad(){

setTimeout(function(){
if(window != null){
// native
var z = document.getElementsByClassName("checkbox-label");
for (k = 0; k < z.length; k++) {
if(z[k].innerHTML == 'Adobe Acrobat'){
z[k].style.color = 'red';
}
}
}
else{
// portal
var aTags = this.document.getElementsByClassName("ng-binding");
var searchText = "Adobe Acrobat";
for (var i = 0; i < aTags.length; i++) {
if (aTags[i].textContent.toString() == searchText) {
aTags[i].style.color = 'red';
break;
}
}
}
}, 3000);
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900