I wanted to add animation to the sub-categories in my code snippet located at: this link so that they show up when I hover over the category name. Unfortunately, my current solution didn't produce the desired result.
<script>
$(document).ready(function(){
$("#m").hover(
function () {
$(this).children('ul').show();
},
function () {
$(this).children('ul').hide();
}
);
});
</script>
- What could be causing this issue?
- Any suggestions on how to troubleshoot and fix it?