Horje
validator.addmethod username duplicates Code Example
validator.addmethod username duplicates
$("#signup").validate( {
    rules: {
        username: {
            required: true,
            minlength: 5,
            remote: {
                url: "dbquery.php",
                type: "get",
                data: {
                    action: function () {
                        return "checkusername";
                    },
                    username: function() {
                        var username = $("#username").val();
                        return username;
                    }
                }
            }
        }
    },
    messages: {
        username: {
            required: "Enter a username"
        }
    },
    submitHandler: function(form) {
        form.submit();
    }
});




Javascript

Related
json data find Code Example json data find Code Example
javascript sorting an array Code Example javascript sorting an array Code Example
typescript html element focus with if else Code Example typescript html element focus with if else Code Example
how to add a property to a class in javascript Code Example how to add a property to a class in javascript Code Example
node.js sign in to website and get contents of new page Code Example node.js sign in to website and get contents of new page Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7