Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 4: Line 4:
$(function() {
$(function() {
    var $menu = $('#ldd_menu');
    var $menu = $('#ldd_menu');
-
                     var $child = $menu.children('li');
+
                     var $child = $menu.find('li');
-
                     var $number = $child.index($menu);
+
                     var $number = $child.index($child);
-
         $menu.eq($number).children('li').hover(function(){ alert($number)
+
         $menu.eq($number).find('li').hover(function(){ alert($number)
            $child.find('.ldd_submenu').slideDown(300);
            $child.find('.ldd_submenu').slideDown(300);
} ,function(){  
} ,function(){  

Revision as of 16:02, 5 October 2014