jquery 最簡單的屬性菜單
更新時間:2009年10月08日 14:44:22 作者:
jquery 最簡單的屬性菜單實現代碼,推薦大家看下。
1.0 創(chuàng)建 <UL> 菜單樹! 并影藏 子選項!
2.0 加入!
$("li:has(ul)").click(
function (){$(this).children("ul").css("display")=='none'?$(this).children("ul").show("slow"):$(this).children("ul").hide("slow");
}
);
3.0 你完成了!
2.0 加入!
復制代碼 代碼如下:
$("li:has(ul)").click(
function (){$(this).children("ul").css("display")=='none'?$(this).children("ul").show("slow"):$(this).children("ul").hide("slow");
}
);
3.0 你完成了!
相關文章
Jquery 獲取表單text,areatext,radio,checkbox,select值的代碼
Jquery 獲取表單text,areatext,radio,checkbox,select值的實現代碼,學習jquery的朋友可以參考下。都是必須要了解的。2009-11-11