On 9/30/07, me1000 <[EMAIL PROTECTED]> wrote: > So I thought it was all working great, until I discovered than > whenever you click ANYWHERE on the page it drops down! > :confused:
>From your code I don't see why the div would drop down when clicking anywhere on the page. The only thing I can think of is that there is a missing closing </a> tag, causing the rest of the page to be part of the link that is clickable. If you have a live page we can look at it would be much easier to find the cause of your problem. While I am here anyway, here is a quick rewrite of your code to suggest how you can use jQuery to write it more concisely. var $drop = $('#testidrop'); $('#testialink').click(function(){ $drop.slideDown('slow'); }); $('#close').click(function(){ $drop.slideUp('slow'); }); Joel Birch.