양식 검증을 위한validate 플러그인

1932 단어 validate

 function saveUser() {
    	
		$("#saveSysUserForm").validate({
			rules:{
				femail:{ required: true, email:true},
				fname:{required:true},
				fcardtype:{required:true},
				fcard:{required:true},
				fmobilephone:{required:true}
			
			},
			
			messages:{
				femail:{required:"      ",email:"            "},
			     fname:"       ",
			     fcardtype:"        ",
			     fcard:"      ",
			     fmobilephone:"        "
			}
		});
    	$('#saveSysUserForm').submit();
    }
	



$('#'+formId+'_info').validate({
				rules:{
					"fmoveOutAccountDate":"required"
				},
				errorClass:"red",
				messages:{
					"fmoveOutAccountDate":"        "
				}
	});

required: "    ",
        remote: "      ",
        email: "            ",
        url: "        ",
        date: "        ",
        dateISO: "         (ISO).",
        number: "        ",
        digits: "      ",
        creditcard: "          ",
        equalTo: "         ",
        accept: "              ",
        maxlength: jQuery.format("           {0}     "),
        minlength: jQuery.format("           {0}     "),
        rangelength: jQuery.format("          {0}   {1}       "),
        range: jQuery.format("        {0}   {1}     "),
        max: jQuery.format("         {0}   "),
        min: jQuery.format("         {0}   ")

 



좋은 웹페이지 즐겨찾기