I have menu with category and sub category. My problem is when I click on a sub category, for example when I click Sub Category B
, nothing will be shown. This issue is related to this line:
var toSortId = $(this).attr("id");
Which will give us category b and element click.
this my jsfiddle