h5Validate icon indicating copy to clipboard operation
h5Validate copied to clipboard

type="number" should be validated as a number field

Open pceccato opened this issue 11 years ago • 6 comments

I can enter non numeric fields in firefox and it doesn't prevent me submitting them either.

pceccato avatar May 13 '13 15:05 pceccato

Are you talking about the type="number" HTML5 input type?

ericelliott avatar May 13 '13 17:05 ericelliott

yes, but maybe I'm doing it wrong.

any examples I can look at?

On 14/05/2013, at 3:46 AM, Eric Elliott [email protected] wrote:

Are you talking about the type="number" HTML5 input type?

— Reply to this email directly or view it on GitHubhttps://github.com/dilvie/h5Validate/issues/78#issuecomment-17828031 .

pceccato avatar May 13 '13 21:05 pceccato

Add class="h5-number" and see if that works for you.

ericelliott avatar May 14 '13 00:05 ericelliott

In the mean time, I should wire this up so it works automatically. Thanks for bringing this up. =)

ericelliott avatar May 14 '13 00:05 ericelliott

thanks for looking into this so promptly

paul

On 14/05/2013, at 10:27 AM, Eric Elliott [email protected] wrote:

In the mean time, I should wire this up so it works automatically. Thanks for bringing this up. =)

— Reply to this email directly or view it on GitHubhttps://github.com/dilvie/h5Validate/issues/78#issuecomment-17849901 .

pceccato avatar May 14 '13 02:05 pceccato

No problem. =)

ericelliott avatar May 14 '13 19:05 ericelliott