开发者

How can we implement jquery validation without jquery validator [closed]

开发者_StackOverflow中文版 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

without use of jquery.validate.js validate email in php


You could use a regular expression. Pick one from here which validates email and apply it to the user input to test whether it matches. In PHP you could use the preg_match function.


You can't...you can't not-include code and get all the advantages of it, you have to have code that does the job somewhere, this goes for any language. There are alternatives for sure, none nearly as mature/supported, but you're welcome to try them, for example here's another popular validation plugin.

If you want just the validation you're after for a specific check, see how it's done inside the plguin and replicate that in PHP, whether it be length, min/max, regex, etc.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜