-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.js
More file actions
18 lines (14 loc) · 781 Bytes
/
help.js
File metadata and controls
18 lines (14 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
document.getElementById("suggestionForm").addEventListener("submit", function(event) {
event.preventDefault(); // Prevent form from submitting normally
// Get form values
var email = document.getElementById("email").value;
var suggestion = document.getElementById("suggestion").value;
// Display the values (You'd normally send these values to a server for processing)
console.log("Email: " + email);
console.log("Suggestion: " + suggestion);
// Clear form fields after submission (optional)
document.getElementById("email").value = "";
document.getElementById("suggestion").value = "";
// Display a confirmation message (you'd normally handle this differently)
alert("Thank you for your suggestion!");
});