Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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 ?

#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 '
';
}
?>