Hello all.

I have this problem. I have a div with inactive buttons in a jsp page, buttons like
select all | add to basket | compare | ....
and some java logic determining whether any products (coming from a backend) are found on page load. I want to make this div appear when products are found and disappear when not.
Any help will much apreciated

Thanx in advance

Recommended Answers

All 2 Replies

if your doing this in a JSP then you can either use CSS to hide/show the div, or you can just choose to not output the div in the JSP when you load the page.

Is that what you meant?

Thank you very much for your answer but it was simpler than I thought. Including the div's code in an if block with logic on whether products are found or not suffices. thanx anyway..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.