Home › Forums › Back End › If a div has no content – add class for display:none ? › Re: If a div has no content – add class for display:none ?
December 8, 2011 at 2:25 pm
#92242
standuncan
Member
Sweet, I asked a buddy and he helped out. I was thinking of it the same way and trying like you said, if empty do not display vice if not empty display.
if(!empty($errors)){
echo '';';
echo $errors;
echo '
}
?>