/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
INSIDE THE HEAD ...................................................................... <script type="text/javascript"> $(function() { $("#trigger").click(function(event) { event.preventDefault(); $("#box").slideToggle(); }); $("#box a").click(function(event) { event.preventDefault(); $("#box").slideUp(); }); }); </script> HTML ...................................................................... <div id="box"> </div> CSS ...................................................................... #box { display: none; }
Comments
