  $("#btnSubmitAdminUser").click(function(){


  var $validator=$("#frmAdminUser").validate({
      errorElement: "span",
                errorClass: "help-block help-block-error",
                focusInvalid: !1,
                ignore: "",
                messages: {
					firstName:{
						required: "Please enter a First Name",
						minlength: "First Name must consist of at least 3 characters"
					},
					lastName:{
						required: "Please enter a Last Name",
						minlength: "First Name must consist of at least 3 characters"
					},
			        emailID: "Please enter a valid email address",
					mobileNumber:{
						required: 'Please provide mobile number.',
						digits:'Please enter a valid mobile number.',
						minlength: "Please enter 10 digit mobile number."
					},
					userName:{
						required: "Please enter a username",
						minlength: "Username must consist of at least 6 characters"
					},
					password:{
						required: "Please enter a password",
						minlength: "Password must consist of at least 6 characters"
					},
					confirmPassword:{
						required: "Please enter a password",
						minlength: "Password must consist of at least 6 characters",
						equalTo: "Password & Confirm Password must be same."
					},
                   
                },
                rules: {
                    firstName: {
						required: true,
                        minlength: 3,
                    },
					lastName: {
						required: true,
                        minlength: 3,
                    },
                    emailID: {
                        required: true,
						email: true
                    },
					mobileNumber:{
						required: true,
						digits: true,
						minlength: 10,
					},
					lastName: {
						required: true,
                        minlength: 6,
                    },
					userName: {
						required: true,
                        minlength: 6,
                    },
					password: {
						required: true,
                        minlength: 6,
                    },
					confirmPassword: {
						required: true,
                        minlength: 6,
						equalTo: '#password'
                    },
								
                },
                invalidHandler: function(e, t) {
                    i.hide(), r.show(), App.scrollTo(r, -200)
                },
                errorPlacement: function(e, r) {
                    r.is(":checkbox") ? e.insertAfter(r.closest(".md-checkbox-list, .md-checkbox-inline, .checkbox-list, .checkbox-inline")) : r.is(":radio") ? e.insertAfter(r.closest(".md-radio-list, .md-radio-inline, .radio-list,.radio-inline")) : e.insertAfter(r)
                },
                highlight: function(e) {
                    $(e).closest(".form-md-line-input").addClass("has-error")
                },
                unhighlight: function(e) {
                    $(e).closest(".form-md-line-input").removeClass("has-error")
                },
                success: function(e) {
                    e.closest(".form-md-line-input").removeClass("has-error")
                },
                submitHandler: function(e) {
                    i.show(), r.hide()
                }

    });


	if($("#frmAdminUser").valid())
		$("#frmAdminUser").submit();

  });







	
	  