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 -

Python ctypes access violation with const pointer arguments -