Reputation: 1650
I'm on the latest jQuery version 1.6.2 and validate 1.8. What's the syntax for verifying a an optional phone field if non-blank? This doesn't trigger it
<%= f.text_field :fax, :class => "phoneUS" %>
It only gets triggered if I add required
to class
like such
<%= f.text_field :fax, :class => "required phoneUS" %>
Upvotes: 1
Views: 556