I am trying to do a jquery remote validation to see if a name is unique or not, but i do not want to do remote validation on every single onkekup event, however i would like to do this on blur event(when user leaves the textbox). but with current code i have below, it fires up after 2nd character is pressed. i would like to continue to have rest of the rules fire on onkeyup like required and minlength and rules for other elements. is there not a property to control this behavior, just for single rule? i noticed a set default that does for entire form.
elem.validate({
ignore: "",
rules: {
name: {
required: true,
minlength: 2,
maxlength: 60,
remote: {
url: "/api/IsUniqueName",
onkeyup: false,
type: "get",
contentType: "application/json",
data: {
name: function () {
return elem.find('input[name^=Name]').val();
}
},
headers: {
RequestVerificationToken: Indexreqtoken
},
}
},
...