Please note that the scenario is ASP.NET Webforms + Master - Content page which mess up the ids.
I have, say, three checkboxes
You can just wait for the click event on all checkboxes, and perform your validation there. No need for .each(). This way, you validate whenever any of the checkboxes have been checked or unchecked.
$('input.company:checkbox').click(function(){
if ($('input.company:checkbox:checked').length > 0)
{
$('div#CompanyPanel').show();
}
else
{
$('div#CompanyPanel').hide();
}
});
You can just optimize it a bit as well, and change according to your needs.