/* let firstname = $('#firstname-modify').val(); let age = $('#age-modify').val(); let gender = $('#gender-modify').val(); let pet = $('#pet-modify').val(); let contact= $('#contact-modify').val(); let idLover = $selectLovers2.val(); if(age !== null){ $.ajax({ type: "PATCH", url: "http://localhost:8080/api/profiles/"+idProfile.replace('profile-','')+"/updateAge", data: JSON.stringify({ "updateAge" : age}), contentType: "application/json; charset=utf-8", dataType: "json", }); } if(firstname !== ''){ $.ajax({ type: "PATCH", url: "http://localhost:8080/api/profiles/"+idProfile.replace('profile-','')+"/updateFirstname", data: JSON.stringify({ "updateFirstname" : firstname}), contentType: "application/json; charset=utf-8", dataType: "json", }); } if(gender !== null){ $.ajax({ type: "PATCH", url: "http://localhost:8080/api/profiles/"+idProfile.replace('profile-','')+"/updateGender", data: JSON.stringify({ "updateGender" : gender}), contentType: "application/json; charset=utf-8", dataType: "json", }); } if(pet !== null){ $.ajax({ type: "PATCH", url: "http://localhost:8080/api/profiles/"+idProfile.replace('profile-','')+"/updatePet", data: JSON.stringify({ "updatePet" : pet}), contentType: "application/json; charset=utf-8", dataType: "json", }); } if(contact !== null){ $.ajax({ type: "PATCH", url: "http://localhost:8080/api/profiles/"+idProfile.replace('profile-','')+"/updateContact", data: JSON.stringify({ "updateContact" : contact}), contentType: "application/json; charset=utf-8", dataType: "json", }); } if(idLover !== null){ $.ajax({ type: "PATCH", url: "http://localhost:8080/api/profiles/"+idProfile.replace('profile-','')+"/updateLovers", data: JSON.stringify({ "updateLovers" : idLover}), contentType: "application/json; charset=utf-8", dataType: "json", }); } $('#firstname-modify').val(''); $('#age-modify').val(''); $('#gender-modify').val(''); $('#pet-modify').val(''); $('#contact-modify').val(''); $.ajax({ type: "GET", url: "http://localhost:8080/api/profiles"+idProfile.replace('profile-',''), contentType: "application/json; charset=utf-8", dataType: "json", success: function(data){ myNewProfile(data); }, }); return false; */

Here is the profile you want to change :

Modify your profile info :

Firstname :

Age :

Gender (Male/Female/Other):

For a pet, what do you prefer (cats/dogs/other) ? :

Contact information for potential lovers :

Want to choose a new love interest ?:

See your new profile now that you have made all your modifications: