How to transfer field location inside a div? I am looking for a way to transfer the location of the field created programmatically inside a div created by field_group module.

Can anyone help me to achieve this? 

Thank you.
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.