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 ?

#92219
standuncan
Member

I have a div that contains all my errors on a form. I have it styled and positioned where needed, but when there are no errors, I would like the div to not be visible.

I’m going to see if I can work with the idea above, thanks.