Skip to content
Advertisement

Hide element when another element is present on the page

I want to hide an element if one element is already present on the page.

If element with the id:

JavaScript

is present on the page, then hide following element:

JavaScript

I want to achieve is either through a function or .css, it doesn’t matter.

Advertisement

Answer

Just do it with JavaScript.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement