Jump to content

Hide a div based on divs contents


wigglesby

Recommended Posts

Hi

 

I have a div (<div id="box info>") which has a unordered list of data retrieved from the db.

If there is no data, then the div will display with an empty <ul></ul> and no <li< tags.

 

I want some jQuery that will hide the <div id="box info"> if there are no <li> tags within it.

 

Is this possible?

 

 

Link to comment
https://forums.phpfreaks.com/topic/182913-hide-a-div-based-on-divs-contents/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.