JS error on submission
-
Line 126 of the admin.js file is throwing an error on submission, not noticeable straight away as it only happens on click of the submit button and the email field is blank.
if (emails[i].trim() !== '' && !emailRegEx.test( emailsCC[i].trim() ) ) { // If email address included it must be valid
Uncaught TypeError: Cannot read property ‘0’ of undefined
at HTMLInputElement.<anonymous> (admin.js:126)
at HTMLInputElement.dispatch (jquery.js:3)
at HTMLInputElement.r.handle (jquery.js:3)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘JS error on submission’ is closed to new replies.