jquery validator addMethod
Hello I am using addMethod in jquery validator but it is not working I have this:
$.validator.addMethod("complete_url", function(val, elem) {
return false;
},"Please enter a valid URL");
$("#Profile").validate({
rules: {
website: {
required: false,
url: "complete_url"
},
password: {
required: false,
minlength: 6
}
}
});
it is a test but is not working, if i put ------> url:{complete_url:false} doesn't work neither.
can help me?