I have a repeating section that includes a yes/no checkbox and a single line text box. The text box if for users to manually add to a project task list. I want the entry in the text box to change formatting (strike through, turn grey, something) when the yes/no box is checked. This doesn't work and I cannot find any documentation around this.
Solved
Can anyone tell me how to apply font level formatting rule for a textbox

Best answer by chaitra_b_c
Below is working code:
NWF$(document).ready(function () {
var opt= NWF$("#" + chkOption);
opt.change(function(){
if(opt.prop('checked')) //since its a check-box the checked property will return the value
{
NWF$("#" + txtTitle).prop('class','myTxtCss'); //to apply CSS class to a control
}
else
{
NWF$("#" + txtTitle).prop('class','ms-spellcheck-true nf-associated-control');
}
});
});
You can change the .myTxtCss definition written in Custom CSS section as per your needs.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.