I have used the following code for making accordion inside ul-li :
$(document).ready(function(){
var rr = true;
$('ul.side > li.first-level > ul').hide();
$('ul.side > li.first-level').click(function(){
if(rr===true){
$(this).children('ul').slideDown(150);
rr = false;
}
else{
$(this).children('ul').slideUp(150);
rr = true;
}
});
});
The problem is that the show-hide or slideUp-slideDown is working to show or hide the content, but nor animating as it should. Intead, i found that the more you increase the value or slideUp-down show-hide, the more delay it has in getting the elements show or hide. I found somewhere in this site a question, where he was having the same problem, but the answers told him to not to use tbody. i amusing ul-li. I even tried enclosing the ul-to be shown or hidden under a div, but it was the same. Here is the fiddle: http://jsfiddle.net/xCHCF/ . Thanks in advance.