I have an array or json array
var Patient = {
PatientID : $scope.PatientID,
FirstName: $scope.FirstName,
LastName: $scope.LastName,
Disease: $scope.Disease,
PhoneNo: $scope.PhoneNo
};
I need to convert that Patient array to new FormData() by using loop
var patientData = new FormData();
for(var i = 0; i<=Patient.length; i++) {
patientData.appent(Patient.Key,Patient.Value);
}
is this possible ?? or onsubmit, instad of creating Pating array can i directing get formdata as a FormData() or is there any another way to do this ??