-
I create a menu with a javascript object and jquery. I have certain items that needs to be in the
<ul></ul>but instead they’re beneath it. -
I have ‘Index’ for example. In there I want to append a list of items.
I know the category id is 0 and the item id is 2, i stored those things in the data attribute.
Now how can I append a ul to that one?
That’s not how
appendworks. You need to create the elements on their own. Here:Here’s the updated jsFiddle.