function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vinnusfvinnusf 

Change the parent Id of a child and assign new parent to the child with drag and drop

HI

I have a urgent requiremnt , I am displaying account and related contacts on visual force page , I need the functionality that, when i drag and drop  the accountA child contactA to the block of accountB , the contactA should be deleted from accountA and should be added to accountB as a child. I.e with drag and drop the contactA from accountA block to contact list of AccountB , then the contactA should be added to AccountB . I.e here I want to change the parent id of child record. Can any one please give me any solution to how to achieve this.

Thanks in Advance

Thank you.
SonamSonam (Salesforce Developers) 
You might have to use jquery for this purpose as this is not present in the current VF library, check the following thread for sample code:
https://developer.salesforce.com/forums/ForumsMain?id=906F000000098i6IAA
vinnusfvinnusf
@sonam

Thank you for the reply. I will try that.
thanks