首页 >web前端 >js教程 >jQuery ui插件的使用方法代码实例_jquery

jQuery ui插件的使用方法代码实例_jquery

WBOY
WBOY原创
2016-05-16 17:34:261010浏览

复制代码 代码如下:

      
   
   

   

        $(function () {

            $('#form1').validate({
                rules: {
                    txtUser: { required: true, minlength: 6 },
                    txtPassword: { required: true, minlength: 6 },
                    txtConfirm: { required: true, minlength: 6, equalTo: "#password" },
                    txtHomePage: { required: true, url: true },
                    txtBirthday: { required: true, dateISO: true },
                    txtXueYa: { required: true, digits: true },
                    txtEmail: { required: true, email: true }
                },
                errorshow: function (error, element) {
                    error.appendTo(element.siblings('span'));
                }
            })
        })

   



   

        
            
               
               
             

             


                
                 
             

             


                
                 
             

             


                  
                   
             

             


               
                
             

             


                
                 
             

             


               
               
             
        
用户名: *
密码: *
确认密码: *
主页: *
生日: *
血压: *
邮箱: *

   



声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn