jQuery hover event with nested elements

后端 未结 2 1388
余生分开走
余生分开走 2020-12-21 17:15

I\'ve currently got your basic, run-of-the-mill menu tree as follows:

  • home
2条回答
  •  星月不相逢
    2020-12-21 17:35

    You can actually do this without js although you would need the js for ie6.

    something like this might work:

    $(this).children('div').css("display", "block");
    

    or even:

    $(this).children('div').show();
    

    Here 'this' is the li.

提交回复
热议问题