jQuery .after function is printing instead of moving? -


i have submenu items want move on mobile menu, i'm moving required <li>'s no longer children, siblings. keeps printing 'li.mftopmenu' instead of moving elements. have tried .insertafter, clones them, moves them.

jquery('li.mfsubmenu').after('li.mftopmenu'); 

try pass element not string in other words selector string,

jquery('li.mfsubmenu').after(jquery('li.mftopmenu')); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -