I’m a newbie on Rails and Javascipt.
I’ve been having trouble using Jquery validate on email fields because of HTML 5 validation blocking jquery validate plugin (the email field gets red outline with no messages). So I have 2 questions.
1.) I have this form (from devise), how do I add novalidate to this?
= form_for(resource, :as => resource_name, :url =>
registration_path(resource_name)) do |f|
2.) I’ve also tried adding novalidate using javascript,the email field only gets validated when the form is submitted, not on focus out (which is what I want), but the other field validations are just fine. Does anyone have the same problem?
Thanks in advance!
Update:
I got this from the link by ig0774
This solved the problem!
https://github.com/jzaefferer/jquery-validation/pull/108/files