How to transfer field location inside a div?
I was able to achieve this using javascript:

&lt;script&gt;
$("#edit-field-date").appendTo("#detail-wrap");
&lt;/script&gt;


But I am still looking for a way to do it under form_alter.