How can I hide a div and show it only if another div exists on the page? I assume jquery or js is the way to go ....
<style type="text/css"> .always-here { display:none; } </style> <div class="im-here">This div exists on this particular page!</div> <div class="always-here">This div is always here but has the style display: none unless a div with the class "im-here" exists.</div>
source share