U
Write code (HTML, CSS and JS) for a simple welcome page and form with 3 input fields and a dropdown with 2 buttons, cancel and send, then run test with my Codepen project.
A
javascript
let cancelButton = document.getElementById("cancel-button");
let sendButton = document.getElementById("send-button");
cancelButton.addEventListener("click", function() {
console.log("Cancel button clicked");
});
sendButton.addEventListener("click", function() {
// Handle form submission
});A
Note: This is just an example of a simple HTML form. In a real-world scenario, you would also want to include proper validation and handling of the form data on the server side.