Thanks V@no
The above method works just fine.
I have a little trouble in what I was trying to do before. I tried but I can’t find a solution so I am asking here to get some help.
Let me show you the java script (Basic code) that I was trying to use.
<script>
function expcol(id)
{
obj = document.getElementById(id);
if (obj.style.display == 'none')
obj.style.display = 'block';
else
obj.style.display = 'none';
}
</script>
<div onClick="expcol('span1')" style="cursor:hand;">Main Category</div>
<span id="span1" style="display:none;">
Subcategory 1<br>
Subcategory 2<br>
Subcategory 3
</span>
</span>
When someone clicks on main category, the menu expands itself and shows all the sub-categories in it.
The problem is, since category images are displayed using categories.html, the above code doesn’t show subcategories.
More precisely, I was trying to do something that you can see in this website.
HERE Any idea if this can be done ??