+ 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

7th Oct 2017, 8:34 PM
Juliana
1 Answer
0
I have a submit button but it got cut out of the code. thanks for the answer. I'll try again
8th Oct 2017, 5:24 AM
Juliana