whatgoodisaroad / validity

Client-Side Validation for jQuery
http://whatgoodisaroad.github.io/validity/
132 stars 74 forks source link

Problem with input type="number" #51

Closed josecelano closed 10 years ago

josecelano commented 10 years ago

Hi:

I use Symfony and number fields are rendered as <input type="number" ...> The library does not work in these cases.

I gues the library does not support HTML5.

whatgoodisaroad commented 10 years ago

Hi, josecelano,

It looks like that element type was overlooked when I added the HTML5 support. I can fix that soon.

Until then, you can enable it easily with the following line:

 $.validity.settings.elementSupport += ", input[type='number']"
whatgoodisaroad commented 10 years ago

Fixed in this commit.

josecelano commented 10 years ago

OK. Thank you very much. I am going to try it.

markvantilburg commented 10 years ago

Wyatt, Could you update the 'build'?

whatgoodisaroad commented 10 years ago

That's my mistake, sorry. It's built and the feature should be available in v1.4.1.

markvantilburg commented 10 years ago

Thank you!