Title: Javascript error on submission : using client side ajax validation
Last modified: August 30, 2016

---

# Javascript error on submission : using client side ajax validation

 *  [andylcc](https://wordpress.org/support/users/andylcc/)
 * (@andylcc)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-on-submission-using-client-side-ajax-validation/)
 * If i switch on Client Side Ajax Validation – the validation appears to work correctly
   and the fields will show and error or go-green with user input. But when i click
   SEND – it does nothing and the console (chrome) prints :
 * Uncaught TypeError: Cannot read property ‘length’ of undefined
 * Note : I apache password protected the wp-admin directory in the vhost, but have
   allowed wp-admin/admin-ajax.php to be accessible without auth.
 * [https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/](https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/)

Viewing 1 replies (of 1 total)

 *  [megnicholas](https://wordpress.org/support/users/megnicholas/)
 * (@megnicholas)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-on-submission-using-client-side-ajax-validation/#post-6732638)
 * Hi there, do you have a url you can share?

Viewing 1 replies (of 1 total)

The topic ‘Javascript error on submission : using client side ajax validation’ is
closed to new replies.

 * ![](https://ps.w.org/clean-and-simple-contact-form-by-meg-nicholas/assets/icon-
   256x256.png?rev=2552365)
 * [Contact Form Clean and Simple](https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/clean-and-simple-contact-form-by-meg-nicholas/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/clean-and-simple-contact-form-by-meg-nicholas/)
 * [Active Topics](https://wordpress.org/support/plugin/clean-and-simple-contact-form-by-meg-nicholas/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/clean-and-simple-contact-form-by-meg-nicholas/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/clean-and-simple-contact-form-by-meg-nicholas/reviews/)

## Tags

 * [length](https://wordpress.org/support/topic-tag/length/)
 * [submit](https://wordpress.org/support/topic-tag/submit/)
 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 1 reply
 * 2 participants
 * Last reply from: [megnicholas](https://wordpress.org/support/users/megnicholas/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-on-submission-using-client-side-ajax-validation/#post-6732638)
 * Status: not resolved