+ 1
Please what is wrong with the code. The js is not working
<!DOCTYPE html> <html> <head> <title>Contact Us</title> <script> function submit() { alert("Thanks for leaving a message. we will get back to you shortly"); } </script> </head> <body> <form class="formaction formcontrol formgroup" onsubmit="return submit()" method="POST"> <label for="name">Name</label><br/> <input type="text" id="name" placeholder="juliana" required=""><br/><br/><br/> <label for="email">Email</label><br> <input type="text" id="email" placeholder="julianamonday@gmail.com
1 Answer
0
I have a submit button but it got cut out of the code. thanks for the answer. I'll try again