Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 5: Line 5:
    var $menu = $('#ldd_menu');
    var $menu = $('#ldd_menu');
                     var $child = $menu.children('li');
                     var $child = $menu.children('li');
-
                     var $number = $child.index($child);
+
                     var $number = $child.index($menu);
         $menu.eq($number).children('li').hover(function(){ alert($number)
         $menu.eq($number).children('li').hover(function(){ alert($number)

Revision as of 15:59, 5 October 2014