Hide a DIV link
This here DIV will be hidden when you click on
the link
This is the link that hides the DIV
Here's the HTML I used.
<div id="hide-this"> This here DIV will be hidden when you click on the link </div> <a href="#hide-this" class="close">This is the link that hides the DIV</a>
$(function() { $('a.close').click(function() { $($(this).attr('href')).slideUp(); return false; }); });