Basically your CSS is added div to dv. So, you have to coordinate with your developer to make sure that your child menu opens even after changing the order of the menu.
Moreover, if you don’t want to see javascript:; when you hover over the menu, then just go to the backend and remove the respective option(item without link). For better understanding, I have added a screenshot-