开发者

jQuery validation needed

Thanks for taking the time to help out.

I'm using ASP.NET WebForms and I need a build a custom control for a custom CMS. I've implemented the server-side validation already. What it does is it check whether the values of the required fields are different than null and if they are not it shows a label which states that the field is required.

Now I'd like to implement a jQuery validation (I was instructed not to use the built in validation asp.net controls) and want to show the same labels if some condition is not fulfilled (like if the value of a required textfield is null).

I have very minimal knowledge in jQuery but I'm a fast learner. Could you give me some pointers and directions as to where to start. Thank you very much!


My question has been answered. If you are looking for an answer to my question, just read t开发者_高级运维hrough the comments bellow. Big thanks to the community!


There is an Excellent jQuery Validation plugin. bassistance has a nice article, and StackOverflow is filled with jQuery validation questions.

To get you started:

  • jQuery Validate Plugin - How to create a simple custom rule?
  • jQuery validate: How to add a rule for regular expression validation?
  • Validation of radio button group using jQuery validation plugin
  • Advanced example
  • Custom date format with jQuery validation plugin


the standard way of doing validation in jQuery is the validation plugin.
it has very good documentation as well.


Try this:

http://codebetter.com/karlseguin/2009/04/28/validation-part-2-client-side/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜