Team:Hong Kong HKUST/notebook
From 2013.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
<script> | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | $('.head'). | + | $('.head').each(function(){ |
- | + | var $content = $(this).closest('li').find('.content'); | |
- | + | $(this).click(function(e){ | |
- | + | e.preventDefault(); | |
+ | $content.not(':animated').slideToggle(); | ||
}); | }); | ||
+ | }); | ||
</script> | </script> | ||
</head> | </head> |
Revision as of 04:13, 19 August 2013