JQuery Easyui Verify two times password input is equal _jquery

Source: Internet
Author: User
Tags html tags

What is JQuery Easyui

The JQuery Easyui Framework provides everything you need to create a Web page to help you build your site easily.

Easyui is a jQuery based framework that integrates a variety of user interface plug-ins.

Easyui provides the necessary functionality to build modern, interactive JavaScript applications.

With Easyui, you don't have to write too many JavaScript code, and in general you just need to use some HTML tags to define the user interface.

The complete framework of HTML Web pages.

Easyui saves the time and scale of developing products.

Easyui is very simple, but very powerful.

The Jquery Easyui is a very good UI framework, but there is no most common validation in form validation for the equality of values in the two output boxes, so I did an extension.

/**
* @author Yukaizhao
/$.extend ($.fn.validatebox.defaults.rules, {/ 
* must be equal to a field/*
Equalto: {
validator:function (value,param) {return
$ (param[0]). val () = = value
;}, message
: ' Field mismatch '
}

Use examples:

Password:

<input id= "password" name= "password" validtype= "length[4,32" "class=" Easyui-validatebox "required=" true "type=" Password "value=" "/>
<br/>

Confirm Password:

 
 

You can specify the Validtype property as equalto[' #password '.

Of course Use this widget, must first reference jquery Easyui JS Library.

The above content is small series to introduce jquery Easyui verify two times password input is equal to the relevant knowledge, hope to help everyone, if you want to know more information please pay attention to cloud Habitat community website, thank you!

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.