This is just a guess, but I believe your problem is here
$('#'+id+' > form#post :input').each(function(){
This is looping through the input fields, relationship and user fields are select fields and will not be selected. Textarea fields would also not be selected using $('#'+id+' > form#post :input')