开发者

JQuery form validator that is W3C Valid

Im doing some form validation on a website and I've tried to use JQuery Validator and it works find but isn't valid as it uses custom attributes. I've tried every which way to make it valid but it seems besides some other custom javascript, which is not an option, it isn't val开发者_高级运维id.

Has anyone come across one that is valid? Or some other way to make it valid? I've tried custom dtds, adding the attribute to the doctype but that leaves a ]> on the page.

Cheers


It's possible to setup validation rules purely in Javascript, based on form field IDs (I don't know if ou would count this as 'custom' javascript, but it's standard JQuery Validator stuff).

There's an example you can see here:

http://jquery.bassistance.de/validate/demo/milk/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜