Subform checkbox readonly
Posted: Mon Sep 22, 2014 8:37 pm
Hi,
I have a subform with checkboxes and when they are checked I need to change them to readonly.
I have tried to use:
But it does not work.
Any advice?
Thank you!
I have a subform with checkboxes and when they are checked I need to change them to readonly.
I have tried to use:
Code: Select all
function lockReplaced(){
var subFormPrefixes = nuSubFormArray('replaced_subform');
for (var index in subFormPrefixes){
if ($('#'+subFormPrefixes[index]+'replaced_deliv').val()=='1'){
$('#'+subFormPrefixes[index]+'replaced_deliv').attr('readonly',true);
}
}
}
Any advice?
Thank you!