detach() vs remove()

detach() vs remove()

Can somebody say what is the difference?

  1. #box {
  2.   background-color: green;
  3. }

  4. var tt = $("#box").detach();
  5. $(tt).appendTo("body");
  6. // or
  7. var tt = $("#box").remove();
  8. $(tt).appendTo("body");


In both situations - it will do the same. Cut and paste. So, what's the difference?