JQuery Validate plugin remote usage encyclopedia _jquery

Source: Internet
Author: User

Jquery.validate is a validation framework for jquery, with the advantage of jquery, we can quickly verify some of the common input, we can expand our own verification methods, and the internationalization also has a good support

JQuery.validate.js is frequently used in form validation, and is a beginner for remote use.

. Basic explanation

jquery is primarily used for the retrieval of dom trees and CSS trees and a set of methods for subsequent operations, JQuery.validate.js is a plug-in to jquery that can be thought of as an extension of jquery in a particular scenario, and validate is the extension that is provided for form validation.

. Scene explanation

Users to register users, to the asynchronous judgment of the existence of the user name, give a hint information.

. Learn through case studies

Script that combines HTML and JavaScript.

<! DOCTYPE HTML PUBLIC "-//wc//dtd XHTML. transitional//en "" Http://www.w.org/TR/xhtml/DTD/xhtml-transitional.dtd ">  

Backstage PHP code basefunction.php

<?php
function Writelog ($msg)
{
$filename = dirname (__file__). " \\Debug.log ";
$handler = null;
if ($handler = fopen ($filename, ' ab+ '))!== false)
{
fwrite ($handler, \ n). ' ['. Date (' y-m-d h:i:s '). '. ' \ t ". $msg);
Fclose ($handler);
}
function CheckUser ($UserName) { 
if ($_request[$UserName] = = ' php ') {
exit ("false");
}
else{
exit ("true");
}
? >

Backstage PHP code learn.php

<?php
require ("basefunction.php");
CheckUser (' FirstName ');
? >

The above is a small set to introduce the jquery validate Plug-ins remote usage of the relevant knowledge, hope that the above help!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.