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').click(function(e){
+
       $('.head').each(function(){
-
        e.preventDefault();
+
      var $content = $(this).closest('li').find('.content');
-
        $(this).closest('li').find('.content').slideToggle();
+
      $(this).click(function(e){
-
      });
+
      e.preventDefault();
 +
      $content.not(':animated').slideToggle();
     });
     });
 +
});
   </script>
   </script>
</head>
</head>

Revision as of 04:13, 19 August 2013