That's one way to do it. Or you could pass the reference around as a parameter to the necessary method(s).
Type: Posts; User: KevinWorkman
That's one way to do it. Or you could pass the reference around as a parameter to the necessary method(s).
You have to keep a reference to the checkboxes you want to disable, then iterate over them and disable them when appropriate.