开发者

Validating all entries in Input Boxes

开发者 https://www.devze.com 2022-12-11 17:08 出处:网络
I want a class in JavaScript through which I can validate all the Input Bo开发者_如何学Goxes on a form. I just want to supply the form name and it must validate the input boxes there in.

I want a class in JavaScript through which I can validate all the Input Bo开发者_如何学Goxes on a form. I just want to supply the form name and it must validate the input boxes there in.

Is there any class or something other through which I can achieve this?


Have you looked at the validator plugin?

http://docs.jquery.com/Plugins/Validation


If you don't want to use JQuery I described an alternative library in an earlier post What JavaScript library to use for client-side form checking?

That allows you to just add attributes like REQUIRED or DATE to an <INPUT> tag.

It's a bit old-hat now, but we are still using it in production :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号