Skip to content
Advertisement

onsubmit not fired when last entry is correct

Everything works fine when there is nothing in the email input, but as soon as I enter a “valid” email address, it doesn’t even fire the function because the alert is never triggered. Any help will be appreciated.

Javascript (js/registration.js):

JavaScript

HTML:

JavaScript

Advertisement

Answer

JavaScript

You dont have x defined here. i think it should be value4.length

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement