iamdanmorris iamdanmorris - 3 months ago 5x
HTML Question

how to hide a particular div tag

Is it possible to write a jQuery code that hides a particular div tag? if so what would this look like? I have a jQuery lightbox and it has a watermark the div that contains the watermark is:

<div id="html5-watermark" style="position: absolute; left: 10px; top: 10px;">
<a href="http://html5box.com/" style="text-decoration:none;" title="jQuery Lightbox">
<div style="display:block;width:170px;height:20px;text-align:center;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#fff;color:#333;font:12px Arial,sans-serif;">
<div style="line-height:20px;">HTML5 Lightbox Free Version</div>

Its sourced from html5 and really easy to install unfortunately the code & CSS is hosted somewhere else so I can't edit it directly.


Simple answer -

<script type="text/javascript">

Add this below your div tag.

Also, I'd recommend reading up on jQuery. It's pretty sweet and useful actually.