Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function saveChanges() {
- let destinationValues = document.getElementById("destination");
- let continentValues = document.getElementById("continent");
- let priceValues = document.getElementById("price");
- let dateValues = document.getElementById("date");
- if (destinationValues.value === "" || continentValues.value === "" || priceValues.value === "" || dateValues.value === "") {
- return
- }
- let formData = {
- "destinationValues": destinationValues.value,
- "continentValues":continentValues.value,
- "priceValues": priceValues.value,
- "dateValues": dateValues.value
- };
- comonData.push(formData);
- render(comonData);
- destinationValues.value = "";
- continentValues.value = "";
- priceValues.value = "";
- dateValues.value = "";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement