Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 15: Line 15:
});
});
*/
*/
 +
$(function() {
$(function() {
    var $menu = $('#ldd_menu');
    var $menu = $('#ldd_menu');
-
                     var $number = $('.menu_button').index($child);
+
                     var $child  = $menu.children(".menu_button")
 +
                    var $number = $child.index($child);
         $menu.eq($number).hover(function(){
         $menu.eq($number).hover(function(){

Revision as of 16:09, 5 October 2014