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" %>
Remove the required class so that it is optional.
use the minlength equals 1 to check if its not empty.