elclanrs / jq-idealforms-old

The ultimate framework for building and validating responsive HTML5 forms.
665 stars 95 forks source link

Bug with <input type="url" | "email"> elements. #48

Closed nevf closed 12 years ago

nevf commented 12 years ago

HTML such as: <input type="url"> and <input type="email"> doesn't currently work.

the fix is to change: $text = $inputs.filter(':text, :password, textarea'), to: $text = $inputs.filter(':text, :password, textarea, [type="email"], [type="url"]'),

in: FormInputs = (function () {...

-Neville

elclanrs commented 12 years ago

I think you might be using an old version, that got fixed a while ago. Now it looks like this:

var getFormInputs = function () {
  ...
  text: $form.find('input:not([type="checkbox"], [type="radio"], [type="submit"]), textarea')
  ...
}

That will effectively grab all type of inputs, such as email and url. Make sure to download the latest version.

nevf commented 12 years ago

I am using an old version, but download the latest .zip this morning to check it had the same issue. I've just downloaded the zip file again and it is completely different (and fixed) to the earlier one. I have no idea what happened earlier.