Can somebody say what is the difference?
- #box {
- background-color: green;
- }
- var tt = $("#box").detach();
- $(tt).appendTo("body");
- // or
- var tt = $("#box").remove();
- $(tt).appendTo("body");
In both situations - it will do the same. Cut and paste. So, what's the difference?