/ Published in: jQuery
simple jquery accordion
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function(){ $("#sidebar .menu li ul").hide(); $("#sidebar .menu li").hover(function(){ $("ul", this).slideToggle(); }, function(){ $("ul", this).slideToggle(); }); });