[Answer]-Javascript validation not happening

1đź‘Ť

âś…

Your “Send Message” button is just a button — it doesn’t submit the form. You can either use an <input type="submit"> or use JavaScript on your <button> to submit the form.

👤jprofitt

0đź‘Ť

You need to add an onclick event to your button. Add the following attribute to the button

Syntax:

onclick="document.NameOfTheForm.submit();"

So in this syntax you have to add following

onclick="document.myForm.submit();"
👤Hari Das

Leave a comment