Forums

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

Home Forums Back End PHP Search and Return Div By Class Re: PHP Search and Return Div By Class

#134291
Jeremy_RP
Member

So you want to only pull divs with select classes to display but not the rest of the paragraphs? There is a simple CSS way to do that. It still retrieves the paragraphs but doesnt display them. If that sounds like it works for you you can do:

.yourcontainerclass p {display:none;}

.yourcontainerclass div.yourdivclass {display:block;}