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
Post a Comment