July 31, 201115 yr Hey, Im using jQuery to do a drop down panel. So its a div a the top of the page, which will have some content in it, but when the page loads, in my css file I have display:none. http://www2.lethal-zone.eu/ Thats the page, click on the "Test" text (in black, so look for it in the header). It opens up, goes to display:block, but when it goes back it stays at display:block, when my jQuery is: <script type="text/javascript"> $(document).ready(function() { $('#login-tab').toggle(function() { $('.login-hidden').animate({'height':'+=200px'}, 500, 'swing'); $('.login-hidden').css('display','block'); }, function() { $('.login-hidden').css('display','none'); $('.login-hidden').animate({'height':'-=200px'}, 500, 'swing'); }); }); </script> Pretty weird
July 31, 201115 yr Author Heh nice one, although, why does it need that? Surley the display:none would make it disappear?
July 31, 201115 yr Forget that the code you posted doesn't match your site Edited July 31, 201115 yr by mteam
July 31, 201115 yr Author Yeah I changed it when you said do position:relative... and it worked, so i tidied it up abit
Create an account or sign in to comment