-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomplaint.js
23 lines (17 loc) · 846 Bytes
/
complaint.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// main.js
/*document.getElementById('complaintForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent the default form submission
// Get values from the form
const busNumber = document.getElementById('busNumber').value;
const passengerDetails = document.getElementById('passengerDetails').value;
const issue = document.getElementById('issue').value;
// Perform validation if needed
// Display a confirmation message
showConfirmationMessage();
// You can send the complaint details to the server here for further processing
});*/
/*function showConfirmationMessage() {
// Show the confirmation message and hide the form
document.getElementById('complaintForm').style.display = 'none';
document.getElementById('confirmationMessage').style.display = 'block';
}*/