validation - jQuery Validate On Remote response based -
remote: { url: "/pages/", complete: function (status) { return !status; } }
i have applied jquery validation , remote parameter, call returns true , false depending on data sent, need validation if true returned should considered false , vice versa. tried returning opposite response in complete callback, validations not work way guess.
not sure may status returned remote not considered bool
here. try this.
remote: { url: "/pages/", complete: function (status) { if(status=="true") return false; return true; //no need of else } }
Comments
Post a Comment