-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS_FLIGHT
More file actions
14 lines (11 loc) · 743 Bytes
/
CSS_FLIGHT
File metadata and controls
14 lines (11 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
document.getElementById('flightSearchForm').addEventListener('submit', function(event) {
event.preventDefault();
const departureCity = document.getElementById('departureCity').value;
const destinationCity = document.getElementById('destinationCity').value;
const departureDate = document.getElementById('departureDate').value;
const returnDate = document.getElementById('returnDate').value;
// Here you would typically handle the form submission,
// such as sending data to a server or redirecting to a results page.
// For demonstration, we'll just log the input values.
console.log(Searching flights from ${departureCity} to ${destinationCity}, Departure: ${departureDate}, Return: ${returnDate});
});