真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

jQueryValidationPlugin

index.html

成都創(chuàng)新互聯(lián)成都網(wǎng)站建設(shè)按需定制,是成都網(wǎng)站建設(shè)公司,為陽光房提供網(wǎng)站建設(shè)服務(wù),有成熟的網(wǎng)站定制合作流程,提供網(wǎng)站定制設(shè)計(jì)服務(wù):原型圖制作、網(wǎng)站創(chuàng)意設(shè)計(jì)、前端HTML5制作、后臺程序開發(fā)等。成都網(wǎng)站改版熱線:13518219792





Insert title here




    // add the customized method 
	$.validator.addMethod("test",function(value,element,params){
		var flag = false;
		if(typeof(value)!=null&&parseInt(value)>10){
			flag = true;
		}
		return this.optional(element) || flag;
	},"the input value must be larger that 10");


	$(function(){
		$("#form").validate({
            submitHandler: function(form) {
                alert("pass ... ");
            },
            rules: {
                username: {
                    required:true
                },
                password:{
                	required:true,
                	minlength:6
                },
                email:{
                	required:true,
                	email:true
                },
                testField:{
                	required:true,
                	test:true
                }
            },
            messages: {
                username: {
                    required:"please input the username"
                },
                password:{
                	required:"please input the password",
                	minlength:"the password must be six characters at least"
                },
                email:{
                	required:"please input the email",
                	email:"the email format is wrong!"
                },
                testField:{
                	required:"please input the testField",
                }

            }//end messages
        });
	});



	
		

附件:http://down.51cto.com/data/2365952

當(dāng)前題目:jQueryValidationPlugin
文章出自:http://weahome.cn/article/pgchjs.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部