in my case I want to add the 'div1' class to the 'div2' class but I don't really know how to do it. I tested a code but after the else part, the code doesn't execute (just the append method not other function like alert()...), is there any syntax error for the Magento logic
this is error in console :
require.js:166 Uncaught Error: Mismatched anonymous define() module: function($){
"use strict";
return function myfunctionCheck()
{
//code
}
else {
//code
}
}
}
-
the error seems unrelated with your custom jquery codefmsthird– fmsthird2020年12月23日 13:09:26 +00:00Commented Dec 23, 2020 at 13:09
-
what happens if you remove your custom jquery code? will the error also gone?fmsthird– fmsthird2020年12月23日 13:10:09 +00:00Commented Dec 23, 2020 at 13:10
-
all of them ? or juste the append linecoding mv– coding mv2020年12月23日 13:30:17 +00:00Commented Dec 23, 2020 at 13:30
-
yeah all the custom codesfmsthird– fmsthird2020年12月23日 13:46:58 +00:00Commented Dec 23, 2020 at 13:46
-
the same error when i refresh the pagecoding mv– coding mv2020年12月23日 13:50:18 +00:00Commented Dec 23, 2020 at 13:50
1 Answer 1
Try this into your code part and you can increase and decrease time
setTimeout(function() {
$(".div1").insertAfter($(".div2"));
}, 3000);
answered Dec 28, 2020 at 4:11
Msquare
9,4627 gold badges30 silver badges71 bronze badges
default